mirror of
https://github.com/curl/curl.git
synced 2026-05-16 18:56:21 +03:00
formdata: Must use Curl_safefree instead of free
This commit is contained in:
parent
6b9a3c1865
commit
6374ab2a36
1 changed files with 1 additions and 1 deletions
|
|
@ -1111,7 +1111,7 @@ static CURLcode formdata_add_filename(const struct curl_httppost *file,
|
|||
/* filename need be escaped */
|
||||
filename_escaped = malloc(strlen(filename)*2+1);
|
||||
if(!filename_escaped) {
|
||||
free(filebasename);
|
||||
Curl_safefree(filebasename);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
p0 = filename_escaped;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue