aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-02-08 13:59:40 +0100
committerDan Fandrich <dan@coneharvesters.com>2014-02-09 10:10:22 +0100
commit6374ab2a36e7d287039b0fc148f9079f2ae5fb97 (patch)
tree19be17e60abfceb4d614377910ca22e7d3d6db03
parent6b9a3c1865fa8351905ab1c5033ada15bf87013b (diff)
formdata: Must use Curl_safefree instead of free
-rw-r--r--lib/formdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index e307a28a5..3260928f6 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -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;