mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
g10: Fix memory leak.
* g10/import.c (read_block): Call free_packet to skip the packet. -- Reported-by: Philippe Antoine GnuPG-bug-id: 3916 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
99c17b970b
commit
7c96cc67e1
@ -924,6 +924,8 @@ read_block( IOBUF a, int with_meta,
|
||||
add_kbnode (root, new_kbnode (pkt));
|
||||
pkt = xmalloc (sizeof *pkt);
|
||||
}
|
||||
else
|
||||
free_packet (pkt, &parsectx);
|
||||
init_packet(pkt);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user