From 5c1c22764a815b0336e3ced36f38bc8d51a299fe Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Fri, 31 Aug 2001 15:16:15 +0000 Subject: [PATCH] Fix double freeing --- main/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/output.c b/main/output.c index e78b9e2d5a..df325a9cd4 100644 --- a/main/output.c +++ b/main/output.c @@ -200,7 +200,8 @@ PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS to_be_destroyed_buffer = OG(active_ob_buffer).buffer; if (OG(active_ob_buffer).internal_output_handler - && (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer)) { + && (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer) + && (final_buffer != OG(active_ob_buffer).buffer)) { to_be_destroyed_handled_output[0] = final_buffer; } -- 2.50.1