1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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 <daniel@haxx.se>
This commit is contained in:
Daniel Gustafsson 2020-11-05 09:42:38 +01:00
parent afbf7d260c
commit 085f91036c

View File

@ -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;
}