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:
parent
c3008bffac
commit
b265969154
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user