projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
aba384d
)
fix leak
author
Michael Wallner
<mike@php.net>
Mon, 16 Jan 2012 14:02:51 +0000
(14:02 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 16 Jan 2012 14:02:51 +0000
(14:02 +0000)
php_http_headers.c
patch
|
blob
|
history
diff --git
a/php_http_headers.c
b/php_http_headers.c
index 3173edb680baa29a27239ad5c635f03de23bc3cd..3bc19de70248208c6022d7d439b5d52471ff3183 100644
(file)
--- 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)