* src/http.c (read_response_body): Fix memleak

Reported-by: Вячеслав Петрищев
This commit is contained in:
Tim Rühsen 2020-03-03 10:25:16 +01:00
parent be51eeceab
commit 910c0abe7a

View File

@ -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;
}