diff options
author | Daniel Gustafsson <daniel@yesql.se> | 2020-11-05 09:42:38 +0100 |
---|---|---|
committer | Daniel Gustafsson <daniel@yesql.se> | 2020-11-05 09:42:38 +0100 |
commit | 085f91036ca0170e6820c0cf4b31138a36e827bd (patch) | |
tree | 59accfc03b911847c31d51e2b070a39c053eb241 /lib | |
parent | afbf7d260c59221a262d939165806e804eb46534 (diff) | |
download | curl-085f91036ca0170e6820c0cf4b31138a36e827bd.tar.gz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hsts.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |