diff options
author | Werner Koch <wk@gnupg.org> | 2017-03-30 16:01:52 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-03-30 16:01:52 +0200 |
commit | 7bf24e8146116a30c4c9d7b6dbf8bbb27fc35971 (patch) | |
tree | e095f9d4803de715a40cff6f3dcecde1b9dc65bb /g10/t-keydb-get-keyblock.c | |
parent | gpg: Fix export porting of zero length user ID packets. (diff) | |
download | gnupg2-7bf24e8146116a30c4c9d7b6dbf8bbb27fc35971.tar.xz gnupg2-7bf24e8146116a30c4c9d7b6dbf8bbb27fc35971.zip |
gpg: Fix actual leak and possible leaks in the packet parser.
* g10/packet.h (struct parse_packet_ctx_s): Change LAST_PKT deom a
pointer to its struct.
(init_parse_packet): Adjust for LAST_PKT not being a pointer.
* g10/parse-packet.c (parse): Ditto. Free the last packet before
storing a new one in case of a deep link.
(parse_ring_trust): Adjust for LAST_PKT not being a pointer.
* g10/free-packet.c (free_packet): Ditto.
* g10/t-keydb-get-keyblock.c (do_test): Release keyblock.
--
Fixes-commit: afa86809087909a8ba2f9356588bf90cc923529c
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/t-keydb-get-keyblock.c')
-rw-r--r-- | g10/t-keydb-get-keyblock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/t-keydb-get-keyblock.c b/g10/t-keydb-get-keyblock.c index 993d879d5..167a9bbee 100644 --- a/g10/t-keydb-get-keyblock.c +++ b/g10/t-keydb-get-keyblock.c @@ -61,4 +61,5 @@ do_test (int argc, char *argv[]) TEST_P ("", ! rc); keydb_release (hd1); + release_kbnode (kb1); } |