diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-15 09:11:38 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-15 09:11:38 +0000 |
commit | 12c798873ffbc46f44a9e4fa547787e6e9ddf451 (patch) | |
tree | 1548753dcce5d68cb0701a9c4981bbb926cd254a /src/transport/plugin_transport_wlan.c | |
parent | ca8ca1d787d579f8fc0771c7e0fec559c8d70735 (diff) | |
download | gnunet-12c798873ffbc46f44a9e4fa547787e6e9ddf451.tar.gz gnunet-12c798873ffbc46f44a9e4fa547787e6e9ddf451.zip |
fix memleak
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index d89b72ba6..bda17cb90 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -872,6 +872,13 @@ free_macendpoint (struct MacEndpoint *endpoint) | |||
872 | GNUNET_CONTAINER_DLL_remove (plugin->mac_head, | 872 | GNUNET_CONTAINER_DLL_remove (plugin->mac_head, |
873 | plugin->mac_tail, | 873 | plugin->mac_tail, |
874 | endpoint); | 874 | endpoint); |
875 | |||
876 | if (NULL != endpoint->defrag) | ||
877 | { | ||
878 | GNUNET_DEFRAGMENT_context_destroy(endpoint->defrag); | ||
879 | endpoint->defrag = NULL; | ||
880 | } | ||
881 | |||
875 | plugin->mac_count--; | 882 | plugin->mac_count--; |
876 | if (GNUNET_SCHEDULER_NO_TASK != endpoint->timeout_task) | 883 | if (GNUNET_SCHEDULER_NO_TASK != endpoint->timeout_task) |
877 | { | 884 | { |