[Pkg-gnupg-commit] [gnupg2] 67/180: tools: Fix memleak in gpgconf.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Dec 24 22:29:09 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 b265969154741bf9f93167699fe7ddda1d485265
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Dec 8 13:02:37 2016 +0100

    tools: Fix memleak in gpgconf.
    
    * tools/gpgconf.c (main): Free SOCKETDIR.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 tools/gpgconf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index 67a0dce..5f7912a 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -691,6 +691,7 @@ main (int argc, char **argv)
             if (gnupg_mkdir (socketdir, "-rwx"))
               gc_error (1, errno, "error creating '%s'", socketdir);
             /* Try again.  */
+            xfree (socketdir);
             socketdir = _gnupg_socketdir_internal (1, &flags);
           }
 

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