Fix leaks in cgi strip/highlight mode

This commit is contained in:
Nikita Popov 2020-06-25 16:06:20 +02:00
parent 785497c8ba
commit a1c6a7a3f2

View File

@ -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;
}