X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=b46ba9ef4f2f3deb98756e893fa113f4217a23b6;hp=b606bc3813c440ff726ec336ea80a75a5d063cac;hb=85e7a5ad7604cdb1096bacfc3db06812e87c0c60;hpb=a19a05825d04d634834f7898ec1a5247fdd6095c diff --git a/http.c b/http.c index b606bc3..b46ba9e 100644 --- a/http.c +++ b/http.c @@ -368,6 +368,11 @@ zend_module_entry http_module_entry = { }; /* }}} */ +static void free_to_free(void **s) +{ + efree(*s); +} + /* {{{ php_http_init_globals(zend_http_globals *) */ static void php_http_init_globals(zend_http_globals *http_globals) { @@ -380,6 +385,7 @@ static void php_http_init_globals(zend_http_globals *http_globals) http_globals->curlbuf.used = 0; http_globals->curlbuf.free = 0; http_globals->curlbuf.size = 0; + zend_llist_init(&http_globals->to_free, sizeof(char *), free_to_free, 0); #endif http_globals->allowed_methods = NULL; }