From: Michael Wallner Date: Mon, 16 Jan 2012 14:02:51 +0000 (+0000) Subject: fix leak X-Git-Tag: DEV_2-before-client~70 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=dcae392d5f6c2c25dc7730f4dffdf1bb735e1a17;p=m6w6%2Fext-http fix leak --- diff --git a/php_http_headers.c b/php_http_headers.c index 3173edb..3bc19de 100644 --- a/php_http_headers.c +++ b/php_http_headers.c @@ -147,7 +147,8 @@ PHP_METHOD(HttpHeader, match) } zvalue = php_http_ztyp(IS_STRING, zend_read_property(php_http_header_class_entry, getThis(), ZEND_STRL("value"), 0 TSRMLS_CC)); - RETURN_BOOL(php_http_match(Z_STRVAL_P(zvalue), val_str, flags)) + RETVAL_BOOL(php_http_match(Z_STRVAL_P(zvalue), val_str, flags)); + zval_ptr_dtor(&zvalue); } PHP_MINIT_FUNCTION(http_header)