From bb9e5c8ab55522d85b74bd2c0096472ac99b1485 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 7 May 2010 08:56:31 +0000 Subject: fix --- src/fs/test_fs_list_indexed.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/fs/test_fs_list_indexed.c') diff --git a/src/fs/test_fs_list_indexed.c b/src/fs/test_fs_list_indexed.c index 280ca11ee..c938162f8 100644 --- a/src/fs/test_fs_list_indexed.c +++ b/src/fs/test_fs_list_indexed.c @@ -345,10 +345,16 @@ main (int argc, char *argv[]) "nohelp", options, &run, NULL); stop_arm (&p1); GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-list-indexed/"); - GNUNET_DISK_directory_remove (fn1); - GNUNET_free_non_null (fn1); - GNUNET_DISK_directory_remove (fn2); - GNUNET_free_non_null (fn2); + if (fn1 != NULL) + { + GNUNET_DISK_directory_remove (fn1); + GNUNET_free (fn1); + } + if (fn2 != NULL) + { + GNUNET_DISK_directory_remove (fn2); + GNUNET_free (fn2); + } return err; } -- cgit v1.2.3