summaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2018-04-13 09:42:34 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2018-04-13 09:42:34 +0200
commitf747b8f0734338baa1e608b193b213aca2c577e8 (patch)
tree7134fcc789438e7fbc82baef93026c0eac92b055 /g10/mainproc.c
parentg10: Push compress filter only if compressed. (diff)
downloadgnupg2-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.c1
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;
}