fix leak
authorMichael Wallner <mike@php.net>
Mon, 16 Jan 2012 14:02:51 +0000 (14:02 +0000)
committerMichael Wallner <mike@php.net>
Mon, 16 Jan 2012 14:02:51 +0000 (14:02 +0000)
php_http_headers.c

index 3173edb680baa29a27239ad5c635f03de23bc3cd..3bc19de70248208c6022d7d439b5d52471ff3183 100644 (file)
@@ -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)