Skip to content

curl: fix memory leaked by parse_metalink()#4326

Closed
kdudka wants to merge 2 commits intocurl:masterfrom
kdudka:meta-leak
Closed

curl: fix memory leaked by parse_metalink()#4326
kdudka wants to merge 2 commits intocurl:masterfrom
kdudka:meta-leak

Conversation

@kdudka
Copy link
Contributor

@kdudka kdudka commented Sep 11, 2019

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.

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.
@bagder
Copy link
Member

bagder commented Sep 11, 2019

I propose you make the header file provide an empty macro for the function for the builds without metalink present!

Add empty macro for delete_metalinkfile() when USE_METALINK
is not defined.
@kdudka
Copy link
Contributor Author

kdudka commented Sep 12, 2019

Added. Thanks for review!

@kdudka kdudka closed this in 1ca91bc Sep 13, 2019
@kdudka kdudka deleted the meta-leak branch September 13, 2019 08:13
@lock lock bot locked as resolved and limited conversation to collaborators Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants