diff options
author | Pierre Muller <muller@sourceware.org> | 2008-01-14 08:01:15 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2008-01-14 08:01:15 +0000 |
commit | c1766e7d3e9e7f44ce28689e518c02e2a86f5adb (patch) | |
tree | 2c51034ce46d9c02e0883b734fd737cf8acefb1b /gdb/win32-nat.c | |
parent | 0d6a2f58b829888e9a7fb9ad048ec6be6aeb3dfc (diff) | |
download | gdb-c1766e7d3e9e7f44ce28689e518c02e2a86f5adb.zip gdb-c1766e7d3e9e7f44ce28689e518c02e2a86f5adb.tar.gz gdb-c1766e7d3e9e7f44ce28689e518c02e2a86f5adb.tar.bz2 |
* win32-nat.c (win32_create_inferior): Restore code calling
CloseHandle on ProcessInformation structure.
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r-- | gdb/win32-nat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 40733a8..e8c2bed 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-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 |