diff options
author | Thomas Guillem <thomas.guillem@gmail.com> | 2014-09-12 17:03:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-09-16 18:25:25 +0200 |
commit | 9836b1dddd72a2da573f3922fd99f3bc7ef5feeb (patch) | |
tree | 32d8c06ab8776e5c180fafd81346af201c53cc2c /src/input | |
parent | a464dc681a64514ad7b8b8dbb7e4c64ea0561396 (diff) |
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.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/plugins/CurlInputPlugin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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(); } |