mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
8a915cd9fa
commit
996febbab2
3 changed files with 3 additions and 3 deletions
|
@ -1835,7 +1835,7 @@ signature (const char *option, int argc, char *argv[], void *cookie)
|
|||
debug ("Wrote signature packet:\n");
|
||||
dump_component (&pkt);
|
||||
|
||||
xfree (sig);
|
||||
free_seckey_enc (sig);
|
||||
release_kbnode (si.issuer_kb);
|
||||
xfree (si.revocation_key);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue