]> granicus.if.org Git - php/commitdiff
Fix potential leak in cli server
authorstealth35 <jinmoku@hotmail.com>
Fri, 15 Jun 2012 21:56:54 +0000 (00:56 +0300)
committerstealth35 <jinmoku@hotmail.com>
Fri, 15 Jun 2012 21:56:54 +0000 (00:56 +0300)
sapi/cli/php_cli_server.c

index 87ab7b48f4975980edc50e5f77298893396b512f..876c57a34d4915da7ed7dfe244e12c1171f9739c 100644 (file)
@@ -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;
 } /* }}} */