Skip to content

Commit

Permalink
MFB51: Fixed memory leak on php-cli -h
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Nov 15, 2005
1 parent 8bb39e7 commit 4ded445
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sapi/cli/php_cli.c
Expand Up @@ -700,14 +700,13 @@ int main(int argc, char *argv[])

case 'h': /* help & quit */
case '?':
php_output_startup();
php_output_activate(TSRMLS_C);
if (php_request_startup(TSRMLS_C)==FAILURE) {
goto err;
}
php_cli_usage(argv[0]);
php_end_ob_buffers(1 TSRMLS_CC);
exit_status=0;
zend_ini_deactivate(TSRMLS_C);
goto out_err;

goto out;

case 'i': /* php info & quit */
if (php_request_startup(TSRMLS_C)==FAILURE) {
Expand Down

0 comments on commit 4ded445

Please sign in to comment.