summaryrefslogtreecommitdiffstats
path: root/tools/gpgsplit.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2021-04-12 14:48:59 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2021-11-12 07:35:27 +0100
commit50e6d63f12e700658f094bf1ff2fd25861690240 (patch)
tree4f32ce71abecdc38937ff761ce97ec3f45267890 /tools/gpgsplit.c
parentgpg-pair-tool: Fix typos in protocol description. (diff)
downloadgnupg2-50e6d63f12e700658f094bf1ff2fd25861690240.tar.xz
gnupg2-50e6d63f12e700658f094bf1ff2fd25861690240.zip
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 <jjelen@redhat.com>
Diffstat (limited to 'tools/gpgsplit.c')
-rw-r--r--tools/gpgsplit.c1
1 files changed, 1 insertions, 0 deletions
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;
}