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.
This commit is contained in:
Thomas Guillem 2014-09-12 17:03:03 +02:00 committed by Max Kellermann
parent a464dc681a
commit 9836b1dddd
1 changed files with 1 additions and 0 deletions

View File

@ -587,6 +587,7 @@ input_curl_finish(void)
});
curl_slist_free_all(http_200_aliases);
http_200_aliases = nullptr;
curl_global_cleanup();
}