diff options
author | Justus Winter <[email protected]> | 2016-01-22 10:11:55 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-02-23 10:58:20 +0000 |
commit | dd670366d7aedb07e9420d1f8575197acfae1914 (patch) | |
tree | 380096487e2d589b869f6879f9e80f34e1273d8c | |
parent | common/exechelp: Fix opening the 'nul' device. (diff) | |
download | gnupg-dd670366d7aedb07e9420d1f8575197acfae1914.tar.gz gnupg-dd670366d7aedb07e9420d1f8575197acfae1914.zip |
common/exechelp: Fix handle leak.
* common/exechelp-w32.c (gnupg_spawn_process_detached): Close process
handle.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/exechelp-w32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c index e01be64d7..1a29973e6 100644 --- a/common/exechelp-w32.c +++ b/common/exechelp-w32.c @@ -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; } |