Home GnuPG
Diffusion GnuPG 2809be1f97a4

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.

Cherry picked from master commit:

996febbab21eb9283b0634e51303a36b318734a6
  • 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
rGcca92ca53489: libdns: For SOCKS connection, just fails.
Branches
Unknown
Tags
Unknown
Tasks
T4047: Memory leak in function buf_to_sig