mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
Fix leaks in cgi strip/highlight mode
This commit is contained in:
parent
785497c8ba
commit
a1c6a7a3f2
@ -2569,10 +2569,8 @@ parent_loop_end:
|
||||
if (open_file_for_scanning(&file_handle) == SUCCESS) {
|
||||
zend_strip();
|
||||
zend_file_handle_dtor(&file_handle);
|
||||
php_output_teardown();
|
||||
}
|
||||
return SUCCESS;
|
||||
break;
|
||||
goto parent_out;
|
||||
case PHP_MODE_HIGHLIGHT:
|
||||
{
|
||||
zend_syntax_highlighter_ini syntax_highlighter_ini;
|
||||
@ -2584,9 +2582,8 @@ parent_loop_end:
|
||||
goto fastcgi_request_done;
|
||||
}
|
||||
zend_file_handle_dtor(&file_handle);
|
||||
php_output_teardown();
|
||||
}
|
||||
return SUCCESS;
|
||||
goto parent_out;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user