[Pkg-gnupg-commit] [gnupg2] 77/160: g10: Fix memory leak.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jul 15 09:36:38 UTC 2016


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

dkg pushed a commit to branch upstream
in repository gnupg2.

commit abae8a9dc8a00cf46291ccb40644b3a7aa477307
Author: Justus Winter <justus at g10code.com>
Date:   Thu Jun 30 13:41:10 2016 +0200

    g10: Fix memory leak.
    
    * g10/mainproc.c (release_list): Do not exit early if list is NULL,
    there are other resources that must be released.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 g10/mainproc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/g10/mainproc.c b/g10/mainproc.c
index c191fe0..4217ccd 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -124,8 +124,6 @@ reset_literals_seen(void)
 static void
 release_list( CTX c )
 {
-  if (!c->list)
-    return;
   proc_tree (c, c->list);
   release_kbnode (c->list);
   while (c->pkenc_list)

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