mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
fix leak appearing when more than one -f option specified
This commit is contained in:
parent
68fb6f020b
commit
b2f169ebf8
@ -1409,6 +1409,9 @@ consult the installation file that came with this distribution, or visit \n\
|
||||
break;
|
||||
|
||||
case 'f': /* parse file */
|
||||
if (script_file) {
|
||||
efree(script_file);
|
||||
}
|
||||
script_file = estrdup(php_optarg);
|
||||
no_headers = 1;
|
||||
/* arguments after the file are considered script args */
|
||||
|
Loading…
Reference in New Issue
Block a user