mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 22:00:27 +08:00
* src/http.c (read_response_body): Fix memleak
Reported-by: Вячеслав Петрищев
This commit is contained in:
parent
be51eeceab
commit
910c0abe7a
@ -1772,6 +1772,7 @@ read_response_body (struct http_stat *hs, int sock, FILE *fp, wgint contlen,
|
||||
else
|
||||
{
|
||||
/* A read error! */
|
||||
xfree (hs->rderrmsg);
|
||||
hs->rderrmsg = xstrdup (fd_errstr (sock));
|
||||
return RETRFINISHED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user