projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
TODO: crash--; leaks++;
[m6w6/ext-http]
/
src
/
php_http_message.c
diff --git
a/src/php_http_message.c
b/src/php_http_message.c
index 5a5b5ca4f0d222c3e085b8cf763dcbf900fad934..3f08ee46f681bb2860bb8c5ed8294bf005c2f415 100644
(file)
--- a/
src/php_http_message.c
+++ b/
src/php_http_message.c
@@
-405,7
+405,7
@@
php_http_message_t *php_http_message_reverse(php_http_message_t *msg)
if (c > 1) {
php_http_message_t *tmp = msg, **arr;
if (c > 1) {
php_http_message_t *tmp = msg, **arr;
- arr = ecalloc(c, sizeof(*
*
arr));
+ arr = ecalloc(c, sizeof(*arr));
for (i = 0; i < c; ++i) {
arr[i] = tmp;
tmp = tmp->parent;
for (i = 0; i < c; ++i) {
arr[i] = tmp;
tmp = tmp->parent;
@@
-683,7
+683,7
@@
void php_http_message_object_reverse(zval *zmsg, zval *return_value)
php_http_message_object_t **objects;
int last;
php_http_message_object_t **objects;
int last;
- objects = ecalloc(i, sizeof(*
*
objects));
+ objects = ecalloc(i, sizeof(*objects));
/* we are the first message */
objects[0] = obj;
/* we are the first message */
objects[0] = obj;
@@
-886,7
+886,7
@@
static zval *php_http_message_object_read_prop(zval *object, zval *member, int t
PHP_HTTP_MESSAGE_OBJECT_INIT(obj);
handler->read(obj, tmp);
PHP_HTTP_MESSAGE_OBJECT_INIT(obj);
handler->read(obj, tmp);
- zval_ptr_dtor(return_value);
+
//
zval_ptr_dtor(return_value);
ZVAL_COPY_VALUE(return_value, tmp);
}
zend_string_release(member_name);
ZVAL_COPY_VALUE(return_value, tmp);
}
zend_string_release(member_name);