mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
g10: Fix memory leak.
* g10/keyedit.c (menu_adduid): Don't copy 'sig'. -- Fixes-commit: 809d67e74014cb563efd965744fd11f87bbae743 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
f86b1a15ad
commit
1f7639ebbe
@ -4349,8 +4349,7 @@ menu_adduid (ctrl_t ctrl, kbnode_t pub_keyblock,
|
||||
add_kbnode (pub_keyblock, node);
|
||||
pkt = xmalloc_clear (sizeof *pkt);
|
||||
pkt->pkttype = PKT_SIGNATURE;
|
||||
pkt->pkt.signature = copy_signature (NULL, sig);
|
||||
free_seckey_enc (sig);
|
||||
pkt->pkt.signature = sig;
|
||||
if (pub_where)
|
||||
insert_kbnode (node, new_kbnode (pkt), 0);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user