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:21:12 +0000 (09:21 +0900)
commit2809be1f97a447171a9e8b40079851740b15341a
treee8ccb4758b64426a0660998719227ae76ec96153
parentcca92ca5348999a3564dd54d7b0a103cc9e7640c
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: 4047
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/getkey.c
g10/gpgcompose.c
g10/sign.c