diff options
author | Justus Winter <[email protected]> | 2016-11-14 16:33:18 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-11-14 16:33:18 +0000 |
commit | 2cd281c4def1ea881b92b9aba18c1892f89c1870 (patch) | |
tree | e3dbc07a5cd76871a4afaf077b272c51d1b2ba43 | |
parent | gpgscm: Avoid cell allocation overhead. (diff) | |
download | gnupg-2cd281c4def1ea881b92b9aba18c1892f89c1870.tar.gz gnupg-2cd281c4def1ea881b92b9aba18c1892f89c1870.zip |
g10: Fix memory leak.
* g10/mainproc.c (check_sig_and_print): Free 'pk'.
Fixes-commit: 37e3c897252babc203447be9d2f286a4507875ad
Signed-off-by: Justus Winter <[email protected]>
-rw-r--r-- | g10/mainproc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index 0c979f831..c1819f004 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -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; |