From 50e6d63f12e700658f094bf1ff2fd25861690240 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 12 Apr 2021 14:48:59 +0200 Subject: tools: Avoid memory leak from gpgspilt. * tools/gpgsplit.c (write_part): Free memory when no longer needed. -- GnuPG-bug-id: 5393 Signed-off-by: Jakub Jelen --- tools/gpgsplit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/gpgsplit.c') diff --git a/tools/gpgsplit.c b/tools/gpgsplit.c index cc7bf8ef5..93458068c 100644 --- a/tools/gpgsplit.c +++ b/tools/gpgsplit.c @@ -620,6 +620,7 @@ write_part (FILE *fpin, unsigned long pktlen, } } + xfree (blob); goto ready; } -- cgit v1.2.3