diff options
author | Jakub Jelen <jjelen@redhat.com> | 2021-04-12 14:48:59 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-11-12 07:35:27 +0100 |
commit | 50e6d63f12e700658f094bf1ff2fd25861690240 (patch) | |
tree | 4f32ce71abecdc38937ff761ce97ec3f45267890 /tools/gpgsplit.c | |
parent | gpg-pair-tool: Fix typos in protocol description. (diff) | |
download | gnupg2-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.c | 1 |
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; } |