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β amongoc_client_encryption_t. the one and only. the main character. hand it over and it gets freed π
π AUTHOR π
MongoDB, Inc β periodt. π
π COPYRIGHT π
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms