From 085f91036ca0170e6820c0cf4b31138a36e827bd Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 5 Nov 2020 09:42:38 +0100 Subject: [PATCH] hsts: Remove pointless call to free in errorpath The line variable will always be NULL in the error path, so remove the free call since it's pointless. Closes #6170 Reviewed-by: Daniel Stenberg --- lib/hsts.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/hsts.c b/lib/hsts.c index f828077c7..866f3e9ff 100644 --- a/lib/hsts.c +++ b/lib/hsts.c @@ -498,7 +498,6 @@ static CURLcode hsts_load(struct hsts *h, const char *file) fail: Curl_safefree(h->filename); - free(line); fclose(fp); return CURLE_OUT_OF_MEMORY; }