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)