mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-18 11:39:05 +00:00
plugins/router_http: fix leak if connection to host fails
Fix Coverity CID #971069.
This commit is contained in:
@@ -42,6 +42,7 @@ int uwsgi_routing_func_http(struct wsgi_request *wsgi_req, struct uwsgi_route *u
|
||||
int http_fd = uwsgi_connect(addr, uwsgi.shared->options[UWSGI_OPTION_SOCKET_TIMEOUT], 0);
|
||||
if (http_fd < 0) {
|
||||
uwsgi_log("unable to connect to host %s\n", addr);
|
||||
free(ub);
|
||||
return UWSGI_ROUTE_NEXT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user