gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35971 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r35971 - gnunet/src/cadet
Date: Wed, 24 Jun 2015 15:46:46 +0200

Author: bartpolot
Date: 2015-06-24 15:46:46 +0200 (Wed, 24 Jun 2015)
New Revision: 35971

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- always free connection path, fix memory leak

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-23 18:52:02 UTC 
(rev 35970)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-24 13:46:46 UTC 
(rev 35971)
@@ -2800,6 +2800,8 @@
   {
     connection_cancel_queues (c, GNUNET_YES);
     connection_cancel_queues (c, GNUNET_NO);
+    path_destroy (c->path);
+    c->path = NULL;
   }
   unregister_neighbors (c);
 
@@ -2821,9 +2823,6 @@
   if (NULL != c->t)
     GCT_remove_connection (c->t, c);
 
-  if ( (GNUNET_NO == GCC_is_origin (c, GNUNET_YES)) &&
-       (NULL != c->path) )
-    path_destroy (c->path);
   if (NULL != c->fwd_maintenance_task)
     GNUNET_SCHEDULER_cancel (c->fwd_maintenance_task);
   if (NULL != c->bck_maintenance_task)




reply via email to

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