mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Fix double freeing
This commit is contained in:
parent
6bba521dd3
commit
5c1c22764a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
to_be_destroyed_buffer = OG(active_ob_buffer).buffer;
|
||||||
if (OG(active_ob_buffer).internal_output_handler
|
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;
|
to_be_destroyed_handled_output[0] = final_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue