[Pkg-gnupg-commit] [gnupg2] 57/180: g10: Avoid a memory leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Dec 24 22:29:07 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 6102099985c1b82b6c0bba0464c1f913cc673e96
Author: Neal H. Walfield <neal at g10code.com>
Date:   Tue Dec 6 12:14:49 2016 +0100

    g10: Avoid a memory leak.
    
    * g10/gpg.c (main): Free KB when we're done with it.
    
    Signed-off-by: Neal H. Walfield <neal at g10code.com>
---
 g10/gpg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/g10/gpg.c b/g10/gpg.c
index 2deb27a..19a7a41 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -4845,6 +4845,8 @@ main (int argc, char **argv)
 	      merge_keys_and_selfsig (kb);
 	      if (tofu_set_policy (ctrl, kb, policy))
 		g10_exit (1);
+
+              release_kbnode (kb);
 	    }
 
           tofu_end_batch_update (ctrl);

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