leak
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:08:48 +0000 (20:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:08:48 +0000 (20:08 +0000)
src/hostlist/hostlist-client.c

index d2fa654339cfc43653f5d91c75309128d6eb7a00..049e78c52f10131fc068d549bbb690550812478f 100644 (file)
@@ -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)
     {