From: Antony Dovgal Date: Mon, 27 Mar 2006 08:26:20 +0000 (+0000) Subject: MF51: fix #36869 (memory leak in output buffering when using chunked output) X-Git-Tag: RELEASE_1_3~238 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d15557fb76ccafef24e928cbedcb13691d2788f0;p=php MF51: fix #36869 (memory leak in output buffering when using chunked output) --- diff --git a/main/output.c b/main/output.c index 1ca6c1b4d8..f7f216fa10 100644 --- a/main/output.c +++ b/main/output.c @@ -675,11 +675,7 @@ static inline void php_ob_append(const char *text, uint text_length TSRMLS_DC) /* If implicit_flush is On or chunked buffering, send contents to next buffer and return. */ if (OG(active_ob_buffer).chunk_size && OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) { - zval *output_handler = OG(active_ob_buffer).output_handler; - if (output_handler) { - output_handler->refcount++; - } php_end_ob_buffer(1, 1 TSRMLS_CC); return; }