Skip to content
Snippets Groups Projects
Commit 6374ab2a authored by Dan Fandrich's avatar Dan Fandrich
Browse files

formdata: Must use Curl_safefree instead of free

parent 6b9a3c18
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment