mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
fixed memleak in retrieve_url()
This commit is contained in:
parent
b36c3e48c4
commit
8c2d9afd08
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user