From a596a80191b2c6c2e66ac4f131456a8a96e005b4 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 14 Mar 2023 14:50:40 +0100 Subject: CurlUrlHandle: Fix memory leak in no_proxy string matching method --- src/other_tools/utils/curl_url_handle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/other_tools/utils/curl_url_handle.cpp') diff --git a/src/other_tools/utils/curl_url_handle.cpp b/src/other_tools/utils/curl_url_handle.cpp index 8895bf84..95f04da1 100644 --- a/src/other_tools/utils/curl_url_handle.cpp +++ b/src/other_tools/utils/curl_url_handle.cpp @@ -756,6 +756,7 @@ auto CurlURLHandle::NoproxyStringMatches(std::string const& no_proxy) noexcept if (url_port != nullptr) { tmp_pattern += ":"; tmp_pattern += std::string(url_port); + curl_free(url_port); } auto url_hostport_as_pattern = ParseNoproxyPattern(tmp_pattern); -- cgit v1.2.3