From: Daniel Gustafsson Date: Thu, 5 Nov 2020 08:42:38 +0000 (+0100) Subject: hsts: Remove pointless call to free in errorpath X-Git-Tag: curl-7_74_0~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085f91036ca0170e6820c0cf4b31138a36e827bd;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/hsts.c b/lib/hsts.c index f828077c7d..866f3e9ffd 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; }