Skip to content

Commit 11a202e

Browse files
committedJun 15, 2012
Fix potential leak in cli server
1 parent 280e3a4 commit 11a202e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

Diff for: ‎sapi/cli/php_cli_server.c

+3
Original file line numberDiff line numberDiff line change
@@ -1826,6 +1826,9 @@ static int php_cli_server_send_error_page(php_cli_server *server, php_cli_server
18261826
return SUCCESS;
18271827

18281828
fail:
1829+
if (errstr) {
1830+
pefree(errstr, 1);
1831+
}
18291832
efree(escaped_request_uri);
18301833
return FAILURE;
18311834
} /* }}} */

0 commit comments

Comments
 (0)