fixed memleak in retrieve_url()

This commit is contained in:
Tim Rühsen 2014-09-30 16:02:24 +02:00 committed by Darshit Shah
parent b36c3e48c4
commit 8c2d9afd08
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-05-03 Tim Ruehsen <tim.ruehsen@gmx.de>
* retr.c (retrieve_url): fixed memory leak
2014-07-23 Darshit Shah <darnir@gmail.com>
* http.c (gethttp): Fix a memory leak when retrying authorization

View File

@ -913,6 +913,10 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file,
goto redirected;
}
else
{
xfree(mynewloc);
}
/* Try to not encode in UTF-8 if fetching failed */
if (!(*dt & RETROKF) && iri->utf8_encode)