Skip to content

Commit

Permalink
LibCore: close socket on LocalServer dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
tryfinally authored and awesomekling committed Aug 9, 2020
1 parent 9150f3c commit d9470bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/LibCore/LocalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ LocalServer::LocalServer(Object* parent)

LocalServer::~LocalServer()
{
if (m_fd >= 0)
::close(m_fd);
}

bool LocalServer::take_over_from_system_server()
Expand Down

0 comments on commit d9470bd

Please sign in to comment.