g10: Fix memory leak in check_sig_and_print.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 13 Apr 2018 07:42:34 +0000 (16:42 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 13 Apr 2018 07:42:34 +0000 (16:42 +0900)
* g10/mainproc.c (check_sig_and_print): Free the public key.

--

GnuPG-bug-id: 3900
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/mainproc.c

index 49e7286..c7deeab 100644 (file)
@@ -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;
 }