gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r20003 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r20003 - gnunet/src/mesh
Date: Fri, 24 Feb 2012 13:15:57 +0100

Author: bartpolot
Date: 2012-02-24 13:15:57 +0100 (Fri, 24 Feb 2012)
New Revision: 20003

Modified:
   gnunet/src/mesh/test_mesh_2dtorus.c
   gnunet/src/mesh/test_mesh_local_2.c
Log:
- Fix crashing testcases

Modified: gnunet/src/mesh/test_mesh_2dtorus.c
===================================================================
--- gnunet/src/mesh/test_mesh_2dtorus.c 2012-02-24 10:57:17 UTC (rev 20002)
+++ gnunet/src/mesh/test_mesh_2dtorus.c 2012-02-24 12:15:57 UTC (rev 20003)
@@ -114,6 +114,7 @@
                 "test: All peers successfully shut down!\n");
   }
 #endif
+  GNUNET_CONFIGURATION_destroy (testing_cfg);
 }
 
 
@@ -125,7 +126,6 @@
 #endif
 
   GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
-  GNUNET_CONFIGURATION_destroy (testing_cfg);
 }
 
 

Modified: gnunet/src/mesh/test_mesh_local_2.c
===================================================================
--- gnunet/src/mesh/test_mesh_local_2.c 2012-02-24 10:57:17 UTC (rev 20002)
+++ gnunet/src/mesh/test_mesh_local_2.c 2012-02-24 12:15:57 UTC (rev 20003)
@@ -55,6 +55,10 @@
   {
     GNUNET_SCHEDULER_cancel (abort_task);
   }
+  if (NULL != t)
+  {
+    GNUNET_MESH_tunnel_destroy(t);
+  }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n");
   if (NULL != mesh_peer_1)
   {




reply via email to

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