mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 16:45:06 -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:
|
||||
Curl_safefree(h->filename);
|
||||
free(line);
|
||||
fclose(fp);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user