From: Bart Polot Date: Wed, 17 Jun 2015 09:29:05 +0000 (+0000) Subject: - fix shutdown memleak X-Git-Tag: initial-import-from-subversion-38251~1736 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa09ef0c56c899026b85b98bcce196083d371ed3;p=oweals%2Fgnunet.git - fix shutdown memleak --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 5a7052c56..5f0f660b4 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -3654,6 +3654,9 @@ GCT_destroy (struct CadetTunnel *t) GNUNET_CONTAINER_multipeermap_remove (tunnels, GCP_get_id (t->peer), t)); + while (NULL != t->tq_head) + unqueue_data (t->tq_head); + for (iter_c = t->connection_head; NULL != iter_c; iter_c = next_c) { next_c = iter_c->next;