mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
g10: Fix memory leak.
* g10/keyedit.c (menu_adduid): Deallocate 'sig'. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
64a58e23c3
commit
809d67e740
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user