From: Christian Grothoff Date: Wed, 7 Oct 2015 09:20:44 +0000 (+0000) Subject: -do not leave PPT timeout tasks behind X-Git-Tag: initial-import-from-subversion-38251~1315 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=886d8cda082a8005c1a73a6d6603b9791121a7ae;p=oweals%2Fgnunet.git -do not leave PPT timeout tasks behind --- 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);