mirror of
https://github.com/mirror/wget.git
synced 2024-12-27 13:20:23 +08: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