From c9344d0f4abd4f585f6838f11f88d84baf50f248 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 10 May 2012 18:54:04 +0000 Subject: [PATCH] -fixing leak --- src/transport/gnunet-service-transport_neighbours.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index cb08e68b2..ef677ed54 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -953,6 +953,11 @@ disconnect_neighbour (struct NeighbourMapEntry *n) if (NULL != n->is_active) { n->is_active->n = NULL; + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Failing transmission of active message due to disconnect\n"); + if (NULL != n->is_active->cont) + n->is_active->cont (n->is_active->cont_cls, GNUNET_SYSER); + GNUNET_free (n->is_active); n->is_active = NULL; } -- 2.25.1