diff --git a/Libraries/LibCore/UDPServer.cpp b/Libraries/LibCore/UDPServer.cpp index 462ce5f983..2b5b466074 100644 --- a/Libraries/LibCore/UDPServer.cpp +++ b/Libraries/LibCore/UDPServer.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #ifndef SOCK_NONBLOCK # include @@ -53,6 +54,7 @@ UDPServer::UDPServer(Object* parent) UDPServer::~UDPServer() { + ::close(m_fd); } bool UDPServer::bind(const IPv4Address& address, u16 port)