g10: Fix memory leak.
authorJustus Winter <justus@g10code.com>
Mon, 14 Nov 2016 16:33:18 +0000 (17:33 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 14 Nov 2016 16:33:18 +0000 (17:33 +0100)
* g10/mainproc.c (check_sig_and_print): Free 'pk'.

Fixes-commit: 37e3c897252babc203447be9d2f286a4507875ad
Signed-off-by: Justus Winter <justus@g10code.com>
g10/mainproc.c

index 0c979f8..c1819f0 100644 (file)
@@ -2203,6 +2203,8 @@ check_sig_and_print (CTX c, kbnode_t node)
             }
         }
 
+      free_public_key (pk);
+      pk = NULL;
       release_kbnode( keyblock );
       if (rc)
         g10_errors_seen = 1;