diff options
author | Justus Winter <justus@g10code.com> | 2016-01-22 11:11:55 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2016-02-23 11:58:20 +0100 |
commit | dd670366d7aedb07e9420d1f8575197acfae1914 (patch) | |
tree | 380096487e2d589b869f6879f9e80f34e1273d8c /common/exechelp-w32.c | |
parent | common/exechelp: Fix opening the 'nul' device. (diff) | |
download | gnupg2-dd670366d7aedb07e9420d1f8575197acfae1914.tar.xz gnupg2-dd670366d7aedb07e9420d1f8575197acfae1914.zip |
common/exechelp: Fix handle leak.
* common/exechelp-w32.c (gnupg_spawn_process_detached): Close process
handle.
Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'common/exechelp-w32.c')
-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; } |