From: Antony Dovgal Date: Fri, 24 Nov 2006 11:54:48 +0000 (+0000) Subject: call sapi_deactivate() & friends on error X-Git-Tag: RELEASE_1_0_0RC1~917 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92ed3d2b4c1ca86c54a18f936eb14c65717e5f4f;p=php call sapi_deactivate() & friends on error fixes leak with `php-cli -n -c ..` --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 9e8e26e374..2793494b83 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -718,7 +718,7 @@ int main(int argc, char *argv[]) if (cli_sapi_module.php_ini_path_override && cli_sapi_module.php_ini_ignore) { PUTS("You cannot use both -n and -c switch. Use -h for help.\n"); exit_status=1; - goto out_err; + goto err; } while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0)) != -1) {