diff options
-rw-r--r-- | src/fs/test_fs_list_indexed.c | 14 | ||||
-rw-r--r-- | src/fs/test_fs_publish.c | 14 |
2 files changed, 20 insertions, 8 deletions
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[]) | |||
345 | "nohelp", options, &run, NULL); | 345 | "nohelp", options, &run, NULL); |
346 | stop_arm (&p1); | 346 | stop_arm (&p1); |
347 | GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-list-indexed/"); | 347 | GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-list-indexed/"); |
348 | GNUNET_DISK_directory_remove (fn1); | 348 | if (fn1 != NULL) |
349 | GNUNET_free_non_null (fn1); | 349 | { |
350 | GNUNET_DISK_directory_remove (fn2); | 350 | GNUNET_DISK_directory_remove (fn1); |
351 | GNUNET_free_non_null (fn2); | 351 | GNUNET_free (fn1); |
352 | } | ||
353 | if (fn2 != NULL) | ||
354 | { | ||
355 | GNUNET_DISK_directory_remove (fn2); | ||
356 | GNUNET_free (fn2); | ||
357 | } | ||
352 | return err; | 358 | return err; |
353 | } | 359 | } |
354 | 360 | ||
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[]) | |||
330 | "nohelp", options, &run, NULL); | 330 | "nohelp", options, &run, NULL); |
331 | stop_arm (&p1); | 331 | stop_arm (&p1); |
332 | GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-publish/"); | 332 | GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-publish/"); |
333 | GNUNET_DISK_directory_remove (fn1); | 333 | if (fn1 != NULL) |
334 | GNUNET_free_non_null (fn1); | 334 | { |
335 | GNUNET_DISK_directory_remove (fn2); | 335 | GNUNET_DISK_directory_remove (fn1); |
336 | GNUNET_free_non_null (fn2); | 336 | GNUNET_free (fn1); |
337 | } | ||
338 | if (fn2 != NULL) | ||
339 | { | ||
340 | GNUNET_DISK_directory_remove (fn2); | ||
341 | GNUNET_free (fn2); | ||
342 | } | ||
337 | return err; | 343 | return err; |
338 | } | 344 | } |
339 | 345 | ||