mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix a memory leak.
This commit is contained in:
parent
c79ff7f47a
commit
9fab5a9f28
@ -1,10 +1,11 @@
|
||||
2011-08-18 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
2011-08-18 Giuseppe Scrivano <giuseppe@southpole.se>
|
||||
|
||||
* http.c (gethttp): Fix a memory leak on some errors. Free the head
|
||||
buffer.
|
||||
|
||||
* Makefile.am: Use an additional file "css_.c" which in turn includes
|
||||
"wget.h" and immediately "css.c".
|
||||
|
||||
2011-08-18 Giuseppe Scrivano <giuseppe@southpole.se>
|
||||
|
||||
* http.c (gethttp): Reset chunked_transfer_encoding on redirections.
|
||||
Reported by: Axel Reinhold <axel@freakout.de>.
|
||||
|
||||
|
@ -1986,12 +1986,14 @@ read_header:
|
||||
_("Malformed status line")));
|
||||
CLOSE_INVALIDATE (sock);
|
||||
request_free (req);
|
||||
xfree (head);
|
||||
return HERR;
|
||||
}
|
||||
|
||||
if (H_10X (statcode))
|
||||
{
|
||||
DEBUGP (("Ignoring response\n"));
|
||||
xfree (head);
|
||||
goto read_header;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user