From 886d8cda082a8005c1a73a6d6603b9791121a7ae Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 7 Oct 2015 09:20:44 +0000 Subject: [PATCH] -do not leave PPT timeout tasks behind --- src/transport/plugin_transport_udp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index c7ee5b6e5..7c36e172c 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -3889,6 +3889,11 @@ libgnunet_plugin_transport_udp_done (void *cls) plugin->ppc_dll_tail, cur); GNUNET_RESOLVER_request_cancel (cur->resolver_handle); + if (NULL != cur->timeout_task) + { + GNUNET_SCHEDULER_cancel (cur->timeout_task); + cur->timeout_task = NULL; + } GNUNET_free (cur); } GNUNET_free (plugin); -- 2.25.1