mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-22 01:12:45 +02:00
g10: Fix memory leak.
* g10/keyedit.c (menu_adduid): Don't copy 'sig'.
--
Fixes-commit: 809d67e740
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);
|
add_kbnode (pub_keyblock, node);
|
||||||
pkt = xmalloc_clear (sizeof *pkt);
|
pkt = xmalloc_clear (sizeof *pkt);
|
||||||
pkt->pkttype = PKT_SIGNATURE;
|
pkt->pkttype = PKT_SIGNATURE;
|
||||||
pkt->pkt.signature = copy_signature (NULL, sig);
|
pkt->pkt.signature = sig;
|
||||||
free_seckey_enc (sig);
|
|
||||||
if (pub_where)
|
if (pub_where)
|
||||||
insert_kbnode (node, new_kbnode (pkt), 0);
|
insert_kbnode (node, new_kbnode (pkt), 0);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user