[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.10-3-g91f8a9b
by NIIBE Yutaka
cvs at cvs.gnupg.org
Fri Sep 7 06:06:49 CEST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, STABLE-BRANCH-2-2 has been updated
via 91f8a9b33a1282cbf00cb4b71b177088f0d923d7 (commit)
from f0fdee2e24a25f57a84e1684984ce3921d923e0a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 91f8a9b33a1282cbf00cb4b71b177088f0d923d7
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Sep 7 13:01:52 2018 +0900
g10: Fix memory leak.
* 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 at fsij.org>
diff --git a/g10/import.c b/g10/import.c
index 11de592..29de8ff 100644
--- 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;
}
-----------------------------------------------------------------------
Summary of changes:
g10/import.c | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list