summaryrefslogtreecommitdiffstats
path: root/common/exechelp-w32.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-01-22 11:11:55 +0100
committerJustus Winter <justus@g10code.com>2016-02-23 11:58:20 +0100
commitdd670366d7aedb07e9420d1f8575197acfae1914 (patch)
tree380096487e2d589b869f6879f9e80f34e1273d8c /common/exechelp-w32.c
parentcommon/exechelp: Fix opening the 'nul' device. (diff)
downloadgnupg2-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.c1
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;
}