Index: lldb/trunk/tools/lldb-server/lldb-platform.cpp =================================================================== --- lldb/trunk/tools/lldb-server/lldb-platform.cpp +++ lldb/trunk/tools/lldb-server/lldb-platform.cpp @@ -287,6 +287,10 @@ while (waitpid(-1, nullptr, WNOHANG) > 0); if (fork()) { + // Parent doesn't need a connection to the lldb client + delete socket; + socket = nullptr; + // Parent will continue to listen for new connections. continue; }