X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=cbc38eb7208972603761e9ecd454f8dd07a02f0d;hp=b50682fa8d33ac370d457b50e121acf63b0bdc12;hb=833996197be90565b5bf497aa28226ddf10fb575;hpb=d74c9c7fc9807141e6500a525ab5c80fc9524a34 diff --git a/http.c b/http.c index b50682f..cbc38eb 100644 --- a/http.c +++ b/http.c @@ -199,6 +199,11 @@ 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); }