diff options
author | Justus Winter <[email protected]> | 2016-06-28 13:01:57 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-06-28 13:01:57 +0000 |
commit | d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa (patch) | |
tree | dee26ac6014d52caba0a19615564357caa6bd6e6 /common/exechelp-posix.c | |
parent | common: Fix copying data from the spawned child. (diff) | |
download | gnupg-d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa.tar.gz gnupg-d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa.zip |
common: Close input stream.
* common/exechelp-posix.c (gnupg_spawn_process): Also close the input
stream in the child.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'common/exechelp-posix.c')
-rw-r--r-- | common/exechelp-posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
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], |