gnurl_mime_free(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’– 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 πŸ”₯


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