Home GnuPG
Diffusion GnuPG 996febbab21e

g10: Fix memory leak for PKT_signature.

Description

g10: Fix memory leak for PKT_signature.

* g10/getkey.c (buf_to_sig): Free by free_seckey_enc.
* g10/gpgcompose.c (signature): Likewise.
* g10/sign.c (write_signature_packets): Likewise.
  • Reported-by: Philippe Antoine
  • GnuPG-bug-id: T4047
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 3 2018, 2:07 AM
Parents
rG8a915cd9faf0: agent: New commands PUT_SECRET and GET_SECRET.
Branches
Unknown
Tags
Unknown
Tasks
T4047: Memory leak in function buf_to_sig