common/exechelp: Fix handle leak.
authorJustus Winter <justus@g10code.com>
Fri, 22 Jan 2016 10:11:55 +0000 (11:11 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 23 Feb 2016 10:58:20 +0000 (11:58 +0100)
* common/exechelp-w32.c (gnupg_spawn_process_detached): Close process
handle.

Signed-off-by: Justus Winter <justus@g10code.com>
common/exechelp-w32.c

index e01be64..1a29973 100644 (file)
@@ -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;
 }