aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r--tools/gpgconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index 67a0dce95..5f7912a03 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);
}