From: Christian Grothoff Date: Sat, 16 Jul 2011 20:08:48 +0000 (+0000) Subject: leak X-Git-Tag: initial-import-from-subversion-38251~17801 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a162940d44d0eae1bec6be42503d148b957229c;p=oweals%2Fgnunet.git leak --- diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index d2fa65433..049e78c52 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) {