summaryrefslogtreecommitdiff
path: root/Libraries/LibCore
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibCore')
-rw-r--r--Libraries/LibCore/LocalServer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibCore/LocalServer.cpp b/Libraries/LibCore/LocalServer.cpp
index 93b11f1f4b..ceadadfdb3 100644
--- a/Libraries/LibCore/LocalServer.cpp
+++ b/Libraries/LibCore/LocalServer.cpp
@@ -45,6 +45,8 @@ LocalServer::LocalServer(Object* parent)
LocalServer::~LocalServer()
{
+ if (m_fd >= 0)
+ ::close(m_fd);
}
bool LocalServer::take_over_from_system_server()