1curl_mime_free(3)               libcurl Manual               curl_mime_free(3)
2
3
4

NAME

6       curl_mime_free - free a previously built mime structure
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       void curl_mime_free(curl_mime *mime);
12

DESCRIPTION

14       curl_mime_free(3)  is  used  to clean up data previously built/appended
15       with curl_mime_addpart(3) and other mime-handling functions.  This must
16       be  called  when  the  data  has been used, which typically means after
17       curl_easy_perform(3) has been called.
18
19       The handle to free is the one you passed to the CURLOPT_MIMEPOST(3) op‐
20       tion: attached subparts mime structures must not be explicitly freed as
21       they are by the top structure freeing.
22
23       mime  is  the  handle   as   returned   from   a   previous   call   to
24       curl_mime_init(3) and may be NULL.
25
26       Passing  in a NULL pointer in mime will make this function return imme‐
27       diately with no action.
28

AVAILABILITY

30       As long as at least one of HTTP, SMTP or  IMAP  is  enabled.  Added  in
31       7.56.0.
32

RETURN VALUE

34       None
35

SEE ALSO

37       curl_mime_init(3)
38
39
40
41libcurl 7.76.1                 November 05, 2020             curl_mime_free(3)
Impressum