gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21409 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r21409 - gnunet/src/testing
Date: Thu, 10 May 2012 15:11:43 +0200

Author: grothoff
Date: 2012-05-10 15:11:43 +0200 (Thu, 10 May 2012)
New Revision: 21409

Modified:
   gnunet/src/testing/testing.c
Log:
-fix double free

Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c        2012-05-10 11:52:09 UTC (rev 21408)
+++ gnunet/src/testing/testing.c        2012-05-10 13:11:43 UTC (rev 21409)
@@ -504,9 +504,9 @@
         }
         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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]