the leak is actually from zend_list
authorMichael Wallner <mike@php.net>
Thu, 22 Jan 2015 14:51:26 +0000 (15:51 +0100)
committerMichael Wallner <mike@php.net>
Thu, 22 Jan 2015 14:51:26 +0000 (15:51 +0100)
php_http_message.c

index caf9ee82786347b7f4fb491ae928e5d22dc3e995..145695037d45e00fa0f29296eca7768fc44bf85f 100644 (file)
@@ -806,8 +806,6 @@ php_http_message_object_t *php_http_message_object_new_ex(zend_class_entry *ce,
                o->message = msg;
                if (msg->parent) {
                        o->parent = php_http_message_object_new_ex(ce, msg->parent);
-                       /* not assigned to any zval, so refcount is 0 */
-                       --GC_REFCOUNT(&o->parent->zo);
                }
                o->body = php_http_message_body_object_new_ex(php_http_message_body_class_entry, php_http_message_body_init(&msg->body, NULL));
        }