* ditch warning
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index b606bc3813c440ff726ec336ea80a75a5d063cac..03ac2df105532dab26b8e7f05516abe09f342427 100644 (file)
--- a/http.c
+++ b/http.c
@@ -368,6 +368,12 @@ zend_module_entry http_module_entry = {
 };
 /* }}} */
 
+
+static void free_to_free(void *s)
+{
+       efree(*(char **)s);
+}
+
 /* {{{ php_http_init_globals(zend_http_globals *) */
 static void php_http_init_globals(zend_http_globals *http_globals)
 {
@@ -380,6 +386,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;
 }