From eb02512a408f9b5762d0b682d30d444abe812f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Tue, 3 Mar 2020 19:33:53 +0100 Subject: [PATCH] * src/http.c (gethttp): Remove unneeded free of hstat.(message|error) --- src/http.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/http.c b/src/http.c index bdb94200..48ab5c85 100644 --- a/src/http.c +++ b/src/http.c @@ -3633,7 +3633,6 @@ gethttp (const struct url *u, struct url *original_url, struct http_stat *hs, &auth_finished); if (auth_err == RETROK && retry) { - xfree (hs->message); resp_free (&resp); xfree (message); xfree (head); @@ -4438,8 +4437,6 @@ http_loop (const struct url *u, struct url *original_url, char **newloc, bring them to "while" statement at the end, to judge whether the number of tries was exceeded. */ printwhat (count, opt.ntry); - xfree (hstat.message); - xfree (hstat.error); continue; case FWRITEERR: case FOPENERR: /* Another fatal error. */ @@ -4453,8 +4450,6 @@ http_loop (const struct url *u, struct url *original_url, char **newloc, if ( opt.retry_on_host_error ) { printwhat (count, opt.ntry); - xfree (hstat.message); - xfree (hstat.error); continue; } ret = err; @@ -4719,8 +4714,6 @@ Remote file exists.\n\n")); got_name = true; *dt &= ~HEAD_ONLY; count = 0; /* the retrieve count for HEAD is reset */ - xfree (hstat.message); - xfree (hstat.error); continue; } /* send_head_first */ } /* !got_head */