From: Matthias Wachs Date: Wed, 2 May 2012 08:04:56 +0000 (+0000) Subject: - fix for bug #0002291 X-Git-Tag: initial-import-from-subversion-38251~13721 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fe2b606b2ecb76fe60ffba17cc9cb1754d898096;p=oweals%2Fgnunet.git - fix for bug #0002291 --- 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);