Commit 9836b1dd authored by Thomas Guillem's avatar Thomas Guillem Committed by Max Kellermann

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.
parent a464dc68
...@@ -587,6 +587,7 @@ input_curl_finish(void) ...@@ -587,6 +587,7 @@ input_curl_finish(void)
}); });
curl_slist_free_all(http_200_aliases); curl_slist_free_all(http_200_aliases);
http_200_aliases = nullptr;
curl_global_cleanup(); curl_global_cleanup();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment