summaryrefslogtreecommitdiff
path: root/lib/formdata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-12 09:02:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-12 09:02:23 +0000
commit005042e973cb6e42b8bf76ae15a72f1482c43e6b (patch)
tree96f624013caea58c8e0b6ae41a211dbdd6b44b37 /lib/formdata.h
parentd301d69fbf0342b9510751dcf478487b2e710684 (diff)
downloadcurl-005042e973cb6e42b8bf76ae15a72f1482c43e6b.tar.gz
improved cleaning up in case of memory allocation failures
Diffstat (limited to 'lib/formdata.h')
-rw-r--r--lib/formdata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/formdata.h b/lib/formdata.h
index af62156d6..eb5284caa 100644
--- a/lib/formdata.h
+++ b/lib/formdata.h
@@ -45,11 +45,13 @@ typedef struct FormInfo {
bool value_alloc;
size_t contentslength;
char *contenttype;
+ bool contenttype_alloc;
long flags;
char *buffer; /* pointer to existing buffer used for file upload */
size_t bufferlength;
char *showfilename; /* The file name to show. If not set, the actual
file name will be used */
+ bool showfilename_alloc;
struct curl_slist* contentheader;
struct FormInfo *more;
} FormInfo;