diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-31 15:16:15 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-31 15:16:15 +0000 |
commit | 5c1c22764a815b0336e3ced36f38bc8d51a299fe (patch) | |
tree | ba626c3624e07d1ba913f486b27e3f5bcf2ef116 | |
parent | 6bba521dd3d867aae2a80603b8b27000c9320d67 (diff) | |
download | php-git-5c1c22764a815b0336e3ced36f38bc8d51a299fe.tar.gz |
Fix double freeing
-rw-r--r-- | main/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |