Dirty fix for #1920
authorBart Polot <bart@net.in.tum.de>
Mon, 21 Nov 2011 17:29:09 +0000 (17:29 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 21 Nov 2011 17:29:09 +0000 (17:29 +0000)
src/testing/testing.c

index c2905ea7fcc5da55ef8381d13d6afa14a6113713..59dc6581ef1f6e8228f91bfca7599c0815bb7891 100644 (file)
@@ -540,7 +540,10 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
         GNUNET_free_non_null (d->hostname);
         GNUNET_free_non_null (d->username);
         GNUNET_free (d->proc);
-        GNUNET_free (d);
+//         GNUNET_free (d); // FIXME (could this leak)
+        d->hostname = NULL; // Quick hack to avoid crashing (testing need to be
+                            // overhauled anyway, and the error managing is
+                            // pretty broken anyway.
         return;
       }
       /* wait some more */