aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hostlist/hostlist-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index d2fa654339..049e78c52f 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -1418,7 +1418,10 @@ static void save_hostlist_file ( int shutdown )
return;
}
if (GNUNET_SYSERR == GNUNET_DISK_directory_create_for_file (filename))
- return;
+ {
+ GNUNET_free (filename);
+ return;
+ }
wh = GNUNET_BIO_write_open (filename);
if ( NULL == wh)
{