From d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 28 Jun 2016 15:01:57 +0200 Subject: [PATCH] common: Close input stream. * common/exechelp-posix.c (gnupg_spawn_process): Also close the input stream in the child. Signed-off-by: Justus Winter --- common/exechelp-posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c index aefb6539c..b1b56f30c 100644 --- a/common/exechelp-posix.c +++ b/common/exechelp-posix.c @@ -523,6 +523,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[], { /* This is the child. */ gcry_control (GCRYCTL_TERM_SECMEM); + es_fclose (infp); es_fclose (outfp); es_fclose (errfp); do_exec (pgmname, argv, inpipe[0], outpipe[1], errpipe[1],