From f3a5b502fb6f269e2d22a5991cf4c0a2930a8c2f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 10 May 2012 13:11:43 +0000 Subject: [PATCH] -fix double free --- src/testing/testing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/testing.c b/src/testing/testing.c index c9080f444..31bea068c 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -504,9 +504,9 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) } GNUNET_free_non_null (d->hostname); GNUNET_free_non_null (d->username); - GNUNET_free_non_null (d->username); GNUNET_OS_process_destroy (d->proc_arm_start); d->proc_arm_start = NULL; + d->username = NULL; d->hostname = NULL; // Quick hack to avoid crashing (testing need to be d->cfg = NULL; // overhauled anyway, and the error managing is // GNUNET_free (d); // FIXME (could this leak) -- 2.25.1