[Pkg-gnupg-commit] [gnupg2] 249/292: g10: Fix memory leak.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Nov 21 06:31:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 809d67e74014cb563efd965744fd11f87bbae743
Author: Justus Winter <justus at g10code.com>
Date: Tue Nov 15 11:46:40 2016 +0100
g10: Fix memory leak.
* g10/keyedit.c (menu_adduid): Deallocate 'sig'.
Signed-off-by: Justus Winter <justus at g10code.com>
---
g10/keyedit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/g10/keyedit.c b/g10/keyedit.c
index ffc0da7..4fba224 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -4350,6 +4350,7 @@ menu_adduid (ctrl_t ctrl, kbnode_t pub_keyblock,
pkt = xmalloc_clear (sizeof *pkt);
pkt->pkttype = PKT_SIGNATURE;
pkt->pkt.signature = copy_signature (NULL, sig);
+ free_seckey_enc (sig);
if (pub_where)
insert_kbnode (node, new_kbnode (pkt), 0);
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list