mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 05:40:08 +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>
|
2014-07-23 Darshit Shah <darnir@gmail.com>
|
||||||
|
|
||||||
* http.c (gethttp): Fix a memory leak when retrying authorization
|
* 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;
|
goto redirected;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
xfree(mynewloc);
|
||||||
|
}
|
||||||
|
|
||||||
/* Try to not encode in UTF-8 if fetching failed */
|
/* Try to not encode in UTF-8 if fetching failed */
|
||||||
if (!(*dt & RETROKF) && iri->utf8_encode)
|
if (!(*dt & RETROKF) && iri->utf8_encode)
|
||||||
|
Loading…
Reference in New Issue
Block a user