g10: Fix memory leak.

* g10/mainproc.c (check_sig_and_print): Free 'pk'.

Fixes-commit: 37e3c89725
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-11-14 17:33:18 +01:00
parent 83c184a66b
commit 2cd281c4de
1 changed files with 2 additions and 0 deletions

View 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;