gnunet-svn
[Top][All Lists]
Advanced

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

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


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

Author: bartpolot
Date: 2015-06-24 15:56:33 +0200 (Wed, 24 Jun 2015)
New Revision: 35972

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- free path after unregister

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-24 13:46:46 UTC 
(rev 35971)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2015-06-24 13:56:33 UTC 
(rev 35972)
@@ -223,7 +223,10 @@
   unsigned int pending_messages;
 
   /**
-   * Destroy flag: if true, destroy on last message.
+   * Destroy flag:
+   * - if 0, connection in use.
+   * - if 1, destroy on last message.
+   * - if 2, connection is being destroyed don't re-enter.
    */
   int destroy;
 
@@ -2800,10 +2803,10 @@
   {
     connection_cancel_queues (c, GNUNET_YES);
     connection_cancel_queues (c, GNUNET_NO);
-    path_destroy (c->path);
-    c->path = NULL;
   }
   unregister_neighbors (c);
+  path_destroy (c->path);
+  c->path = NULL;
 
   /* Cancel maintainance task (keepalive/timeout) */
   if (NULL != c->fwd_fc.poll_msg)




reply via email to

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