From 9150f3c266b688bf04c5ca861fe8934cefee25f8 Mon Sep 17 00:00:00 2001 From: Muhammad Zahalqa Date: Sat, 8 Aug 2020 15:26:10 +0300 Subject: [PATCH] LibCore: close socket on TCPServer dtor --- Libraries/LibCore/TCPServer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibCore/TCPServer.cpp b/Libraries/LibCore/TCPServer.cpp index c751b3395a..83ebd867fd 100644 --- a/Libraries/LibCore/TCPServer.cpp +++ b/Libraries/LibCore/TCPServer.cpp @@ -53,6 +53,7 @@ TCPServer::TCPServer(Object* parent) TCPServer::~TCPServer() { + ::close(m_fd); } bool TCPServer::listen(const IPv4Address& address, u16 port)