Home GnuPG
Diffusion GnuPG f1561e5196e5

tools: Fix FILE memory leak in gpg-connect-agent.

Description

tools: Fix FILE memory leak in gpg-connect-agent.

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

(cherry picked from commit 378719f25fe00d46393541f4a4f79e04484c3000)

  • GnuPG-bug-id: T4220
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 24 2018, 8:04 PM
Parents
rG1b9b0fc54b9b: sm: Use the correct string in an error message.
Branches
Unknown
Tags
Unknown
Tasks
T4220: Leak of FILE memory in gpg-connect-agent.c:do_open