tools: Fix FILE memory leak in gpg-connect-agent.
authorWerner Koch <wk@gnupg.org>
Wed, 24 Oct 2018 18:04:52 +0000 (20:04 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 24 Oct 2018 18:04:52 +0000 (20:04 +0200)
commit378719f25fe00d46393541f4a4f79e04484c3000
tree02756cc4c4f3feba528c4819c38cb702a86477e2
parent793fd8d876777c24c4d5072301fa530333d6e1d9
tools: Fix FILE memory leak in gpg-connect-agent.

* tools/gpg-connect-agent.c (do_open): dup the fileno and close the
stream.

GnuPG-bug-id: 4220
Signed-off-by: Werner Koch <wk@gnupg.org>
tools/gpg-connect-agent.c