From: Christian Grothoff Date: Thu, 10 May 2012 13:11:43 +0000 (+0000) Subject: -fix double free X-Git-Tag: initial-import-from-subversion-38251~13550 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f3a5b502fb6f269e2d22a5991cf4c0a2930a8c2f;p=oweals%2Fgnunet.git -fix double free --- 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)