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 (from parent 1:
1544c4a
)
attempt to fix leak
8/head
author
Michael Wallner
<mike@php.net>
Thu, 13 Aug 2015 16:46:15 +0000
(18:46 +0200)
committer
Michael Wallner
<mike@php.net>
Thu, 13 Aug 2015 16:46:15 +0000
(18:46 +0200)
php_http_message.c
patch
|
blob
|
history
diff --git
a/php_http_message.c
b/php_http_message.c
index 0982f06c34b08502c39cc38e5506fa8f68e8bcdc..f06065a4eb05ef138e5b09ed2ebb031a64da7961 100644
(file)
--- a/
php_http_message.c
+++ b/
php_http_message.c
@@
-878,6
+878,8
@@
static zval *php_http_message_object_read_prop(zval *object, zval *member, int t
zval_ptr_dtor(return_value);
ZVAL_COPY_VALUE(return_value, tmp);
}
zval_ptr_dtor(return_value);
ZVAL_COPY_VALUE(return_value, tmp);
}
+ zend_string_release(member_name);
+ return return_value;
} else {
php_property_proxy_t *proxy;
php_property_proxy_object_t *proxy_obj;
} else {
php_property_proxy_t *proxy;
php_property_proxy_object_t *proxy_obj;
@@
-886,12
+888,9
@@
static zval *php_http_message_object_read_prop(zval *object, zval *member, int t
proxy_obj = php_property_proxy_object_new_ex(NULL, proxy);
ZVAL_OBJ(tmp, &proxy_obj->zo);
proxy_obj = php_property_proxy_object_new_ex(NULL, proxy);
ZVAL_OBJ(tmp, &proxy_obj->zo);
+ zend_string_release(member_name);
return tmp;
}
return tmp;
}
-
- zend_string_release(member_name);
-
- return return_value;
}
static void php_http_message_object_write_prop(zval *object, zval *member, zval *value, void **cache_slot)
}
static void php_http_message_object_write_prop(zval *object, zval *member, zval *value, void **cache_slot)