From ee63bbc447f98b4a65df6a728d04aac0118e2437 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 12 Jul 2010 15:02:38 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 9df0583d2..882437400 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -2082,12 +2082,13 @@ libgnunet_plugin_transport_http_done (void *cls) NULL); GNUNET_CONTAINER_multihashmap_destroy (plugin->peers); } - - mret = curl_multi_cleanup(plugin->multi_handle); - if ( CURLM_OK != mret) - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"curl multihandle clean up failed"); - plugin->multi_handle = NULL; - + if (plugin->multi_handle!=NULL) + { + mret = curl_multi_cleanup(plugin->multi_handle); + if ( CURLM_OK != mret) + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"curl multihandle clean up failed\n"); + plugin->multi_handle = NULL; + } GNUNET_free (plugin); GNUNET_free (api); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Unload http plugin complete...\n"); -- 2.25.1