mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48:49 -05: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:
parent
afbf7d260c
commit
085f91036c
@ -498,7 +498,6 @@ static CURLcode hsts_load(struct hsts *h, const char *file)
|
|||||||
|
|
||||||
fail:
|
fail:
|
||||||
Curl_safefree(h->filename);
|
Curl_safefree(h->filename);
|
||||||
free(line);
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user