summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-03-14 14:50:40 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-03-14 15:55:41 +0100
commita596a80191b2c6c2e66ac4f131456a8a96e005b4 (patch)
tree05469963813efaaab7ce3fce5d00e23e5b24f85d /src
parent065f2e1173682dc519c3db85a62f890c0311da6f (diff)
downloadjustbuild-a596a80191b2c6c2e66ac4f131456a8a96e005b4.tar.gz
CurlUrlHandle: Fix memory leak in no_proxy string matching method
Diffstat (limited to 'src')
-rw-r--r--src/other_tools/utils/curl_url_handle.cpp1
1 files changed, 1 insertions, 0 deletions
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);