g10: Fix memory leak for PKT_signature.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 3 Jul 2018 00:07:03 +0000 (09:07 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 3 Jul 2018 00:07:03 +0000 (09:07 +0900)
commit996febbab21eb9283b0634e51303a36b318734a6
tree81130b74ef66fb78b7e5b67a8e21c63aafe52713
parent8a915cd9faf052b4faa3c415f2ac5aa8d6ea1efe
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: 4047
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/getkey.c
g10/gpgcompose.c
g10/sign.c