gnurl_mime_free(3)
π gnurl_mime_free(3) β free a previously built mime structure π
okay so we're in the libgnurl Manual, bestie, and this page is literally all about cleaning up your mime situation. no cap, it's giving βput your toys away when you're doneβ energy π§β¨
πΈ NAME πΈ
curl_mime_free β free a previously built mime structure π
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
void curl_mime_free(curl_mime *mime);
π DESCRIPTION π
So curl_mime_free(3) is the cleanup icon we call to tidy up data that was previously built or appended with curl_mime_addpart(3) and the other mime-handling functions. π«Ά
You must call it once the data has been used β which typically means after curl_easy_perform(3) has been called. like, that's the moment, bestie. β
The handle you free is the one you passed to the CURLOPT_MIMEPOST(3) option. and listen: attached subpart mime structures must not be explicitly freed, because they are freed by the top structure freeing. so do not go freeing subparts yourself, okay? that's main-character top-structure behavior only. π
mime is the handle as returned from a previous call to curl_mime_init(3), and it may be NULL.
Passing in a NULL pointer in mime will make this function return immediately with no action. iconic, honestly. π¦
π AVAILABILITY π
As long as at least one of HTTP, SMTP or IMAP is enabled. Added in 7.56.0. π«
π RETURN VALUE π
None. that's it. no return value, no drama. π
π₯ SEE ALSO π₯
curl_mime_init(3)β the related mime init bestie π
mwah π β that's the whole page, bestie! source: libcurl 7.56.0 Β· date: 22 August 2017 Β· page: gnurl_mime_free(3). πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms