From 92ed3d2b4c1ca86c54a18f936eb14c65717e5f4f Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 24 Nov 2006 11:54:48 +0000 Subject: [PATCH] call sapi_deactivate() & friends on error fixes leak with `php-cli -n -c ..` --- sapi/cli/php_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1