mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:23:31 +03:00
improved cleaning up in case of memory allocation failures
This commit is contained in:
parent
d301d69fbf
commit
005042e973
2 changed files with 56 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue