aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-07 08:56:31 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-07 08:56:31 +0000
commitbb9e5c8ab55522d85b74bd2c0096472ac99b1485 (patch)
treef59dcfd544b9d85a28fc9fc7b510f520e88af031
parent769dbe18c0170dfa8b245cfda276de24d615f18b (diff)
downloadgnunet-bb9e5c8ab55522d85b74bd2c0096472ac99b1485.tar.gz
gnunet-bb9e5c8ab55522d85b74bd2c0096472ac99b1485.zip
fix
-rw-r--r--src/fs/test_fs_list_indexed.c14
-rw-r--r--src/fs/test_fs_publish.c14
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