projects
/
gnupg2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a615b13
)
g10: Fix memory leak.
author
NIIBE Yutaka
<gniibe@fsij.org>
Fri, 7 Sep 2018 04:01:52 +0000
(13:01 +0900)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Mon, 8 Oct 2018 15:36:01 +0000
(16:36 +0100)
* g10/import.c (read_block): Call free_packet to skip the packet.
--
Cherry-pick of master commit of:
7c96cc67e108f3a9514a4222ffac2f9f9a2ab19e
Reported-by: Philippe Antoine
GnuPG-bug-id: 3916
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit
91f8a9b33a1282cbf00cb4b71b177088f0d923d7
)
Gbp-Pq: Name g10-Fix-memory-leak.patch
g10/import.c
patch
|
blob
|
history
diff --git
a/g10/import.c
b/g10/import.c
index d7d79742c72abdd1d4f32c421706b0facac0e706..80bf7c608ffcab7774407648241716f834b6d1e0 100644
(file)
--- a/
g10/import.c
+++ b/
g10/import.c
@@
-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;
}