From 4c0206f90bd0e15acc1031c2011d8a8903d2c911 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 11 Mar 2021 16:04:56 +0100 Subject: [PATCH] http: remove superfluous NULL assign Closes #6727 --- lib/http.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/http.c b/lib/http.c index 5823bb9b4..43eb840de 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3023,10 +3023,8 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done) if(!data->state.aptr.accept_encoding) return CURLE_OUT_OF_MEMORY; } - else { + else Curl_safefree(data->state.aptr.accept_encoding); - data->state.aptr.accept_encoding = NULL; - } #ifdef HAVE_LIBZ /* we only consider transfer-encoding magic if libz support is built-in */