fix leak appearing when more than one -f option specified

This commit is contained in:
Antony Dovgal 2007-04-17 18:51:24 +00:00
parent 68fb6f020b
commit b2f169ebf8

View File

@ -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 */