(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 21 Apr 2010 14:17:20 +0000 (14:17 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 21 Apr 2010 14:17:20 +0000 (14:17 +0000)
src/hostlist/test_gnunet_daemon_hostlist_learning.c

index 468ee5b17a9121da6a6e70b20fb452d0b8552fa6..5bd80700b3e8e423ce1e930292576f5a39cb071a 100644 (file)
@@ -111,7 +111,7 @@ static void shutdown_testcase()
         check_task);
     check_task = GNUNET_SCHEDULER_NO_TASK;
   }
-  GNUNET_free (current_adv_uri);
+  if ( NULL != current_adv_uri ) GNUNET_free (current_adv_uri);
   GNUNET_SCHEDULER_add_now (sched,
                             &clean_up, NULL);
 }
@@ -126,7 +126,7 @@ timeout_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
               "Timeout while executing testcase, test failed.\n");
   timeout = GNUNET_YES;
-  clean_up (NULL, tc);
+  shutdown_testcase();
 }
 
 static int