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 β€” a mongoc_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 πŸ“


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