mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:57:20 +03: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
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue