From: kubistika Date: Sun, 19 May 2019 12:04:38 +0000 (+0300) Subject: server/proxy: Fix mem leak in pf_server_parse_target_from_routing_token X-Git-Tag: 2.0.0~455^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76012fb5d6ae86582818471fae2456cc73503fe6;p=platform%2Fupstream%2Ffreerdp.git server/proxy: Fix mem leak in pf_server_parse_target_from_routing_token --- diff --git a/server/proxy/pf_server.c b/server/proxy/pf_server.c index 4a80d02..eb7fb04 100644 --- a/server/proxy/pf_server.c +++ b/server/proxy/pf_server.c @@ -112,7 +112,10 @@ static BOOL pf_server_parse_target_from_routing_token(freerdp_peer* client, unsigned long p = strtoul(colon + 1, NULL, 10); if (p > USHRT_MAX) + { + free(*target); return FALSE; + } *port = (DWORD)p; *colon = '\0';