diff options
author | stealth35 <jinmoku@hotmail.com> | 2012-06-16 00:56:54 +0300 |
---|---|---|
committer | stealth35 <jinmoku@hotmail.com> | 2012-06-16 00:56:54 +0300 |
commit | 11a202ef50fdcd92b5cc3b3e1d5a739cd85b7541 (patch) | |
tree | 4804f6f3eaf453d22db6bbb48c8f2ffed1177f49 /sapi/cli/php_cli_server.c | |
parent | 280e3a4ec8616f4a32a5186463d475592d1eebda (diff) | |
download | php-git-11a202ef50fdcd92b5cc3b3e1d5a739cd85b7541.tar.gz |
Fix potential leak in cli server
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r-- | sapi/cli/php_cli_server.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } /* }}} */ |