aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-16 20:08:48 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-16 20:08:48 +0000
commit1a162940d44d0eae1bec6be42503d148b957229c (patch)
tree60b00ca3e77d0a031dfe9ebc17bbc6189c5df818
parent6f0bb58c63388841df575d7074396d91d7f55c67 (diff)
leak
-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)
{