diff options
author | Kamil Dudka <kdudka@redhat.com> | 2019-09-11 16:32:11 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2019-09-13 10:09:48 +0200 |
commit | 1ca91bcdb588dc6c25d345f2411fdba314433732 (patch) | |
tree | d679cfa91e7333164055bbe9762bb1f807ba4c02 /src/tool_metalink.c | |
parent | 83b4cfacba3de18b58070eeb1fabf3feca60ca69 (diff) | |
download | curl-1ca91bcdb588dc6c25d345f2411fdba314433732.tar.gz |
curl: fix memory leaked by parse_metalink()
This commit fixes a regression introduced by curl-7_65_3-5-gb88940850.
Detected by tests 2005, 2008, 2009, 2010, 2011, and 2012 with valgrind
and libmetalink enabled.
Closes #4326
Diffstat (limited to 'src/tool_metalink.c')
-rw-r--r-- | src/tool_metalink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_metalink.c b/src/tool_metalink.c index 0740407f9..cd5a7d650 100644 --- a/src/tool_metalink.c +++ b/src/tool_metalink.c @@ -965,7 +965,7 @@ static void delete_metalink_resource(metalink_resource *res) Curl_safefree(res); } -static void delete_metalinkfile(metalinkfile *mlfile) +void delete_metalinkfile(metalinkfile *mlfile) { metalink_resource *res; if(mlfile == NULL) { |