fix crash with free'd event_base pointer
authorMichael Wallner <mike@php.net>
Wed, 12 Dec 2012 18:15:20 +0000 (18:15 +0000)
committerMichael Wallner <mike@php.net>
Wed, 12 Dec 2012 18:15:20 +0000 (18:15 +0000)
php_http_curl_client_pool.c

index 5f175699fdf9e99086691a6e3f38708eec54247e..4edff74e99341166225dd26056bc13a46616c9d8 100644 (file)
@@ -571,6 +571,7 @@ PHP_RSHUTDOWN_FUNCTION(http_curl_client_pool)
 {
        if (PHP_HTTP_G->curl.event_base) {
                event_base_free(PHP_HTTP_G->curl.event_base);
+               PHP_HTTP_G->curl.event_base = NULL;
        }
        return SUCCESS;
 }