aboutsummaryrefslogtreecommitdiffstats
path: root/g10/sign.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2018-07-03 00:07:03 +0000
committerNIIBE Yutaka <[email protected]>2018-07-03 00:07:03 +0000
commit996febbab21eb9283b0634e51303a36b318734a6 (patch)
tree81130b74ef66fb78b7e5b67a8e21c63aafe52713 /g10/sign.c
parentagent: New commands PUT_SECRET and GET_SECRET. (diff)
downloadgnupg-996febbab21eb9283b0634e51303a36b318734a6.tar.gz
gnupg-996febbab21eb9283b0634e51303a36b318734a6.zip
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 <[email protected]>
Diffstat (limited to 'g10/sign.c')
-rw-r--r--g10/sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c
index df71ccce1..581a08f5b 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -772,7 +772,7 @@ write_signature_packets (ctrl_t ctrl,
gpg_strerror (rc));
}
else
- xfree (sig);
+ free_seckey_enc (sig);
if (rc)
return rc;