From 9836b1dddd72a2da573f3922fd99f3bc7ef5feeb Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Fri, 12 Sep 2014 17:03:03 +0200 Subject: CurlInputPlugin: fix crash after second init call The second time init was called, http_200_aliases pointed to a freed pointer and leaded to a SEGFAULT. --- src/input/plugins/CurlInputPlugin.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index a174fcca6..617805e2c 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -587,6 +587,7 @@ input_curl_finish(void) }); curl_slist_free_all(http_200_aliases); + http_200_aliases = nullptr; curl_global_cleanup(); } -- cgit v1.2.3