1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

tools: Fix memleak in gpgconf.

* tools/gpgconf.c (main): Free SOCKETDIR.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-12-08 13:02:37 +01:00
parent c3008bffac
commit b265969154
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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);
}