X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=e2e04208a531e037ebaf47f5070558fbb5c32309;hp=42b382807491cb545b505feabb8a81f0e4897bf5;hb=007a8514b1fd679453526f96dc8a908a8e6354e8;hpb=fe4db6a5020782e03d32348cbe64d93756524441 diff --git a/http_api.c b/http_api.c index 42b3828..e2e0420 100644 --- a/http_api.c +++ b/http_api.c @@ -435,7 +435,7 @@ static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *opti curl_easy_setopt(ch, CURLOPT_AUTOREFERER, 1); curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, http_curl_body_callback); curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, http_curl_hdrs_callback); -#ifdef ZTS +#if defined(ZTS) && (LIBCURL_VERSION_NUM >= 0x070a00) curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1); #endif @@ -533,6 +533,7 @@ static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *opti if (qstr.c) { curl_easy_setopt(ch, CURLOPT_COOKIE, qstr.c); + efree(qstr.c); } }