From 1517dd33d98e9ab203401c292308585126821e0b Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 31 Mar 2012 00:10:30 +0000 Subject: Patch from Viktor Kutuzov: delete the temporary process we created when "process connect" fails. llvm-svn: 153790 --- lldb/source/Commands/CommandObjectProcess.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index ca83986..0dbf54f 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -880,6 +880,7 @@ public: { result.AppendError(error.AsCString("Remote connect failed")); result.SetStatus (eReturnStatusFailed); + target_sp->DeleteCurrentProcess(); return false; } } -- cgit v1.1