formdata: Must use Curl_safefree instead of free

This commit is contained in:
Dan Fandrich 2014-02-08 13:59:40 +01:00
parent 6b9a3c1865
commit 6374ab2a36
1 changed files with 1 additions and 1 deletions

View File

@ -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;