common: Close input stream.

* common/exechelp-posix.c (gnupg_spawn_process): Also close the input
stream in the child.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-06-28 15:01:57 +02:00
parent 8f79c31b4d
commit d36f664bfd
1 changed files with 1 additions and 0 deletions

View File

@ -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],