X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http.c;h=05f448f560008ddcf754c9b4c5088aca722b7ff0;hb=c1cf3f178414800e4010735765ac8d727672584e;hp=b50682fa8d33ac370d457b50e121acf63b0bdc12;hpb=5b440d6af3dd3052dde7b137f975692f0aa84603;p=m6w6%2Fext-http diff --git a/http.c b/http.c index b50682f..05f448f 100644 --- a/http.c +++ b/http.c @@ -199,8 +199,17 @@ static inline void _http_globals_init(zend_http_globals *G TSRMLS_DC) #define http_globals_free(g) _http_globals_free((g) TSRMLS_CC) static inline void _http_globals_free(zend_http_globals *G TSRMLS_DC) { + if (G->request.headers) { + zend_hash_destroy(G->request.headers); + FREE_HASHTABLE(G->request.headers); + G->request.headers = NULL; + } STR_SET(G->send.content_type, NULL); STR_SET(G->send.unquoted_etag, NULL); + if (G->server_var) { + zval_ptr_dtor(&G->server_var); + G->server_var = NULL; + } } /* }}} */