mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue