Commit: 11a202ef50fdcd92b5cc3b3e1d5a739cd85b7541 Author: stealth35 <jinm...@hotmail.com> Sat, 16 Jun 2012 00:56:54 +0300 Parents: 280e3a4ec8616f4a32a5186463d475592d1eebda Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=11a202ef50fdcd92b5cc3b3e1d5a739cd85b7541 Log: Fix potential leak in cli server Changed paths: M sapi/cli/php_cli_server.c Diff: diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 87ab7b4..876c57a 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -1826,6 +1826,9 @@ static int php_cli_server_send_error_page(php_cli_server *server, php_cli_server return SUCCESS; fail: + if (errstr) { + pefree(errstr, 1); + } efree(escaped_request_uri); return FAILURE; } /* }}} */ -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php