mirror of git://git.gnupg.org/gnupg.git
common/exechelp: Fix handle leak.
* common/exechelp-w32.c (gnupg_spawn_process_detached): Close process handle. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
8857590006
commit
dd670366d7
|
@ -829,6 +829,7 @@ gnupg_spawn_process_detached (const char *pgmname, const char *argv[],
|
|||
/* (int) pi.dwProcessId, (int) pi.dwThreadId); */
|
||||
|
||||
CloseHandle (pi.hThread);
|
||||
CloseHandle (pi.hProcess);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue