From: Michael Wallner Date: Thu, 22 Jan 2015 14:51:39 +0000 (+0100) Subject: simplify X-Git-Tag: RELEASE_3_0_0_RC1~66 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3a86698fd01c2837b207cbac28649eb3b6fb9a42;p=m6w6%2Fext-http simplify --- diff --git a/php_http_message_body.c b/php_http_message_body.c index 5004489..6c677bd 100644 --- a/php_http_message_body.c +++ b/php_http_message_body.c @@ -45,14 +45,13 @@ php_http_message_body_t *php_http_message_body_init(php_http_message_body_t **bo body->refcount = 1; if (stream) { - php_stream_auto_cleanup(stream); body->res = stream->res; ++GC_REFCOUNT(body->res); } else { stream = php_stream_temp_create(TEMP_STREAM_DEFAULT, 0xffff); - php_stream_auto_cleanup(stream); body->res = stream->res; } + php_stream_auto_cleanup(stream); if (body_ptr) { *body_ptr = body;