From: Michael Wallner Date: Thu, 21 Jul 2005 18:28:23 +0000 (+0000) Subject: - byebye leaks X-Git-Tag: RELEASE_0_10_0~26 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=9710bc0868c12147598d170ec488a4692d3022a5;hp=1667682342979170c282e2187824d777ce69278e - byebye leaks # seems odd? is odd! --- diff --git a/http.c b/http.c index 3b05887..192834b 100644 --- a/http.c +++ b/http.c @@ -240,9 +240,19 @@ PHP_RINIT_FUNCTION(http) } /* }}} */ +static int cleanup_statics(void *p TSRMLS_DC) +{ + zval_dtor(*(zval **)p); + return 0; +} + /* {{{ PHP_RSHUTDOWN_FUNCTION */ PHP_RSHUTDOWN_FUNCTION(http) { + /* ZE kludge */ +#ifdef ZEND_ENGINE_2 + zend_hash_apply(http_response_object_ce->static_members, cleanup_statics TSRMLS_CC); +#endif http_globals_free(HTTP_GLOBALS); return SUCCESS; }