From 11a202ef50fdcd92b5cc3b3e1d5a739cd85b7541 Mon Sep 17 00:00:00 2001 From: stealth35 Date: Sat, 16 Jun 2012 00:56:54 +0300 Subject: Fix potential leak in cli server --- sapi/cli/php_cli_server.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sapi') diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index 87ab7b48f4..876c57a34d 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; } /* }}} */ -- cgit v1.2.1