Patch from Viktor Kutuzov: delete the temporary process we created when "process connect" fails.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@153790 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectProcess.cpp b/source/Commands/CommandObjectProcess.cpp
index ca83986..0dbf54f 100644
--- a/source/Commands/CommandObjectProcess.cpp
+++ b/source/Commands/CommandObjectProcess.cpp
@@ -880,6 +880,7 @@
                 {
                     result.AppendError(error.AsCString("Remote connect failed"));
                     result.SetStatus (eReturnStatusFailed);
+                    target_sp->DeleteCurrentProcess();
                     return false;
                 }
             }