MONGOC_CLIENT_...YPTION_DESTROY(3)

πŸ’… mongoc_client_encryption_destroy πŸ’…

okay bestie, welcome to the libmongoc manual β€” this one's short and sweet, and honestly? it's giving cleanup era. it's the little destructor that could. let's get into it 🫢


✨ SYNOPSIS ✨

void
mongoc_client_encryption_destroy (
   mongoc_client_encryption_t *client_encryption);

so basically you hand it a mongoc_client_encryption_t * and it releases all the resources tied to that client_encryption and frees the struct itself. that's it. that's the whole gig. πŸŽ€

and the iconique part? it does nothing if client_encryption is NULL. no crash, no drama, no segfault moment β€” it just vibes. no cap, this is the safest little function in the whole encryption API. lowkey obsessed. ✨


🌸 PARAMETERS 🌸

  • client_encryption β€” a mongoc_client_encryption_t. the one and only. the main character. hand it over and it gets freed πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” periodt. πŸ’…


2009-present, MongoDB, Inc. β€” iconic run, honestly. πŸ’œ


ngl, there's no hidden lore here β€” no error codes, no return values, no exit statuses, no env vars. just a clean little teardown. if you were bracing for a plot twist, there isn't one 😭

okay that's the whole page bestie, you ate πŸ¦‹ this was libmongoc 2.5.6, dated Oct 09, 202… (the source footer got a lil cut off, iykyk πŸ’€) β€” now go free your structs responsibly, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from