From dcae392d5f6c2c25dc7730f4dffdf1bb735e1a17 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 16 Jan 2012 14:02:51 +0000 Subject: [PATCH] fix leak --- php_http_headers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2