From 005042e973cb6e42b8bf76ae15a72f1482c43e6b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 12 May 2004 09:02:23 +0000 Subject: improved cleaning up in case of memory allocation failures --- lib/formdata.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/formdata.h') 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; -- cgit v1.2.3