summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstealth35 <jinmoku@hotmail.com>2012-06-15 21:56:54 (GMT)
committerstealth35 <jinmoku@hotmail.com>2012-06-15 21:56:54 (GMT)
commit11a202ef50fdcd92b5cc3b3e1d5a739cd85b7541 (patch)
tree4804f6f3eaf453d22db6bbb48c8f2ffed1177f49
parent280e3a4ec8616f4a32a5186463d475592d1eebda (diff)
downloadphp-11a202ef50fdcd92b5cc3b3e1d5a739cd85b7541.tar.gz
Fix potential leak in cli server
-rw-r--r--sapi/cli/php_cli_server.c3
1 files changed, 3 insertions, 0 deletions
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;
} /* }}} */