From: Michael Wallner Date: Mon, 20 Oct 2008 13:46:37 +0000 (+0000) Subject: * fix bug#14826 (Race condition in http_request_dtor) X-Git-Tag: RELEASE_1_6_2~8 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e135e473c0e4b37ec7266508cc6803d8dae28d73;p=m6w6%2Fext-http * fix bug#14826 (Race condition in http_request_dtor) --- diff --git a/http_request_api.c b/http_request_api.c index ab69200..ad7f88e 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -316,8 +316,8 @@ PHP_HTTP_API void _http_request_dtor(http_request *request) { TSRMLS_FETCH_FROM_CTX(request->tsrm_ls); - http_curl_free(&request->ch); http_request_reset(request); + http_curl_free(&request->ch); phpstr_dtor(&request->_cache.cookies); zend_hash_destroy(&request->_cache.options);