g10: Fix memory leak.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 7 Sep 2018 04:01:52 +0000 (13:01 +0900)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 30 Sep 2018 16:40:42 +0000 (17:40 +0100)
commitf270b958ac7eab607912f7953ac69f9a9e49b1e7
tree6e352938a74b43971f8e56f342221f6d1dbf9f0d
parent7c9a2287f4d286aded06e5545a94986ac8496866
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@fsij.org>
(cherry picked from commit 91f8a9b33a1282cbf00cb4b71b177088f0d923d7)

Gbp-Pq: Name g10-Fix-memory-leak.patch
g10/import.c