MONGOC_CLIENT...N_OPTS_DESTROY(3)
π MONGOC_CLIENT...N_OPTS_DESTROY(3) β¨
okay bestie, welcome to the libmongoc corner of the manual, where today's main character is a little function with a very long name: mongoc_client_encryption_opts_destroy. yes, the synopsis line is literally longer than the function does. it's giving "name drop at a party" energy and honestly? iconic.
πΈ SYNOPSIS πΈ
void
mongoc_client_encryption_opts_destroy (mongoc_client_encryption_opts_t *opts);
so what does it actually do? it frees the resources of a mongoc_client_encryption_opts_t β the kind you made earlier with mongoc_client_encryption_opts_new(). that's it. that's the whole vibe. cleanup era. π§Ήβ¨
and the sweetest part? if you pass NULL, it does absolutely nothing. no crash, no drama, no cryptic segfault at 3am. it just looks at your NULL and goes "k, bye" π«Ά. lowkey the most emotionally mature function in the whole library.
ngl this is your reminder to actually call it when you're done, bestie. memory leaks are not the aesthetic. π
π PARAMETERS π
optsβ amongoc_client_encryption_opts_t. that's the thing you're freeing. give it here. π (or give itNULL, it truly does not care.)
π AUTHOR π
MongoDB, Inc β the literal authors of this whole situation. π«‘
β COPYRIGHT β
2009-present, MongoDB, Inc. β protecting the brand since before some of us could read, fr fr.
okay that's the whole page, you're free to go π¦π
and for the cute sign-off: this little masterpiece is from libmongoc version 2.5.6, dated Oct 09, 2026 β so yes, the docs are time-traveling, we don't ask questions. periodt. ππ
π¦ 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