diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2018-04-13 09:42:34 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2018-04-13 09:42:34 +0200 |
commit | f747b8f0734338baa1e608b193b213aca2c577e8 (patch) | |
tree | 7134fcc789438e7fbc82baef93026c0eac92b055 /g10/mainproc.c | |
parent | g10: Push compress filter only if compressed. (diff) | |
download | gnupg2-f747b8f0734338baa1e608b193b213aca2c577e8.tar.xz gnupg2-f747b8f0734338baa1e608b193b213aca2c577e8.zip |
g10: Fix memory leak in check_sig_and_print.
* g10/mainproc.c (check_sig_and_print): Free the public key.
--
GnuPG-bug-id: 3900
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r-- | g10/mainproc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index 49e728656..c7deeab5f 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -2308,6 +2308,7 @@ check_sig_and_print (CTX c, kbnode_t node) log_error (_("Can't check signature: %s\n"), gpg_strerror (rc)); } + free_public_key (pk); xfree (issuer_fpr); return rc; } |