From: Christian Grothoff Date: Fri, 7 May 2010 08:56:31 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~21830 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bb9e5c8ab55522d85b74bd2c0096472ac99b1485;p=oweals%2Fgnunet.git fix --- 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; } diff --git a/src/fs/test_fs_publish.c b/src/fs/test_fs_publish.c index 7df42a26f..f3cbeb7bb 100644 --- a/src/fs/test_fs_publish.c +++ b/src/fs/test_fs_publish.c @@ -330,10 +330,16 @@ main (int argc, char *argv[]) "nohelp", options, &run, NULL); stop_arm (&p1); GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-publish/"); - 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; }