MONGOC_CLIENT...Y_OPTS_DESTROY(3)
π MONGOC_CLIENT...Y_OPTS_DESTROY(3) π
ok so bestie, welcome to the libmongoc corner of the manual, this one's a lil cleanup era for our girl mongoc_client_encryption_datakey_opts_destroy and honestly it's giving "tidy up your room before your mom gets home" energy. it's short, it's sweet, it slays, and there are literally no surprises. let's get into it π
β¨ SYNOPSIS β¨
void
mongoc_client_encryption_datakey_opts_destroy (mongoc_client_encryption_datakey_opts_t *opts);
okay so what does she actually do? she frees resources of a mongoc_client_encryption_datakey_opts_t β but only one that was created with mongoc_client_encryption_datakey_opts_new(), so don't get cute and hand her some random struct you found lying around, iykyk π«Ά
and the best part? if you pass NULL, she literally does nothing. no crash, no drama, no main character meltdown. she just looks at it, says "not my problem", and moves on. iconic behaviour fr fr πβ¨
lowkey a safety queen β NULL is always welcome here and nothing bad happens. no cap.
πΈ PARAMETERS πΈ
optsβ amongoc_client_encryption_datakey_opts_t. that's it. that's the whole list. one (1) single parameter and she's doing her best π
π AUTHOR π
MongoDB, Inc β the ones who brought you this little cleanup function. they ate and left no crumbs π
π COPYRIGHT π
2009-present, MongoDB, Inc. β yes bestie, the copyright goes all the way back to 2009 and it's still going. longevity queen πβ
and that's the whole page, bestie β short, sweet, and fully understood. this little note is from libmongoc version 2.5.6, dated Oct 09, 2026, so if you're running that, you're golden. go free those resources, clean up after yourself, and remember: NULL is fine, you're fine, we're all fine ππ§ββοΈπ¦
k bye, love u, don't leak memory π β¨
π¦ 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