[Pkg-gnupg-commit] [gnupg2] 246/292: g10: Fix memory leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 2cd281c4def1ea881b92b9aba18c1892f89c1870
Author: Justus Winter <justus at g10code.com>
Date:   Mon Nov 14 17:33:18 2016 +0100

    g10: Fix memory leak.
    
    * g10/mainproc.c (check_sig_and_print): Free 'pk'.
    
    Fixes-commit: 37e3c897252babc203447be9d2f286a4507875ad
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 g10/mainproc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/g10/mainproc.c b/g10/mainproc.c
index 0c979f8..c1819f0 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list