From fe2b606b2ecb76fe60ffba17cc9cb1754d898096 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 2 May 2012 08:04:56 +0000 Subject: [PATCH] - fix for bug #0002291 --- src/transport/plugin_transport_unix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 2aa987914..fa491dfcb 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -1123,8 +1123,10 @@ libgnunet_plugin_transport_unix_done (void *cls) GNUNET_CONTAINER_multihashmap_iterate (plugin->session_map, &get_session_delete_it, plugin); GNUNET_CONTAINER_multihashmap_destroy (plugin->session_map); - GNUNET_NETWORK_fdset_destroy (plugin->rs); - GNUNET_NETWORK_fdset_destroy (plugin->ws); + if (NULL != plugin->rs) + GNUNET_NETWORK_fdset_destroy (plugin->rs); + if (NULL != plugin->ws) + GNUNET_NETWORK_fdset_destroy (plugin->ws); GNUNET_free (plugin->unix_socket_path); GNUNET_free (plugin); GNUNET_free (api); -- 2.25.1