diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 40733a8..e8c2bed 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1880,6 +1880,9 @@ win32_create_inferior (char *exec_file, char *allargs, char **in_env, error (_("Error creating process %s, (error %d)."), exec_file, (unsigned) GetLastError ()); + CloseHandle (pi.hThread); + CloseHandle (pi.hProcess); + if (useshell && shell[0] != '\0') saw_create = -1; else |