aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c
index 11de592a0..29de8ff26 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;
}