From: Zeev Suraski Date: Fri, 27 Jul 2001 07:37:16 +0000 (+0000) Subject: Fix a corrupted memory access X-Git-Tag: PRE_ENGINE2_SPLIT~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e280c3e555bc98a1264d38deac88bee7f707fbb3;p=php Fix a corrupted memory access --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index a10a62293e..002d6c89c4 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -779,13 +779,14 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine if (cgi_sapi_module.php_ini_path_override) { free(cgi_sapi_module.php_ini_path_override); } -#ifdef ZTS - tsrm_shutdown(); -#endif } zend_catch { exit_status = -1; } zend_end_try(); +#ifdef ZTS + tsrm_shutdown(); +#endif + return exit_status; } /* }}} */