]> granicus.if.org Git - php/commitdiff
MF51: fix #36869 (memory leak in output buffering when using chunked output)
authorAntony Dovgal <tony2001@php.net>
Mon, 27 Mar 2006 08:26:20 +0000 (08:26 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 27 Mar 2006 08:26:20 +0000 (08:26 +0000)
main/output.c

index 1ca6c1b4d8f55cca96543cce62dd691f40b40a5e..f7f216fa108b521091af22f7aec8194650a56b90 100644 (file)
@@ -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;
        }