From 1a162940d44d0eae1bec6be42503d148b957229c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 16 Jul 2011 20:08:48 +0000 Subject: [PATCH] leak --- src/hostlist/hostlist-client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.25.1