X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=fc88118fa773acff6ce05d459f6eecb8b77aa6dc;hp=b7026cd8fa9f44bf4adb5ba593d50cf4cbd1530f;hb=9fab5a9f287ef43e3ef28a0de72862c90f47241d;hpb=c79ff7f47acd28322f4f928e2817628bfb77b858 diff --git a/src/http.c b/src/http.c index b7026cd8..fc88118f 100644 --- a/src/http.c +++ b/src/http.c @@ -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; }