From c1766e7d3e9e7f44ce28689e518c02e2a86f5adb Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 14 Jan 2008 08:01:15 +0000 Subject: [PATCH] * win32-nat.c (win32_create_inferior): Restore code calling CloseHandle on ProcessInformation structure. --- gdb/ChangeLog | 5 +++++ gdb/win32-nat.c | 3 +++ gdb/windows-nat.c | 3 +++ 3 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e9e1626501..adf0fae0dc7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-14 Pierre Muller + + * win32-nat.c (win32_create_inferior): Restore code calling + CloseHandle on ProcessInformation structure. + 2008-01-13 Nick Hudson * configure.ac: Check for void * as 3 argument of ptrace. diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 40733a856b9..e8c2bed4e20 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 diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 40733a856b9..e8c2bed4e20 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 -- 2.30.2