MONGOC_CLIENT...X_OPTS_DESTROY(3)

πŸ“¦
version 2.5.6 Β· 2 versions
, in epel 10

πŸ’… MONGOC_CLIENT...X_OPTS_DESTROY(3)

okay so real quick intro: this is a page from libmongoc, the MongoDB C driver docs, and it's about cleaning up after yourself β€” which, yes, is the least glamorous thing ever, but also the most main-character move. slay πŸ’–


✨ SYNOPSIS ✨

void
mongoc_client_encryption_encrypt_string_suffix_opts_destroy(mongoc_client_encryption_encrypt_string_suffix_opts_t *opts);
🫢 Changed in version 2.4.0: it got renamed β€” it came from the now-deprecated text API. so if you're out here reading old code, that's why the name looks different, iykyk.

πŸŽ€ DESCRIPTION πŸŽ€

Bestie. Listen. You made one of these mongoc_client_encryption_encrypt_string_suffix_opts_t things with mongoc_client_encryption_encrypt_string_suffix_opts_new(), right? And now you're done with it?

Free it. That's literally the whole job. This function frees a mongoc_client_encryption_encrypt_string_suffix_opts_t that was created with mongoc_client_encryption_encrypt_string_suffix_opts_new(). Cleanup era. We love to see it. 🧚

(it's giving "wash your face and put your dishes away" energy β€” not exciting, but iconic.)


πŸ¦‹ PARAMETERS πŸ¦‹

  • opts β€” a mongoc_client_encryption_encrypt_string_suffix_opts_t that you want to destroy. yes. that one. the one you made. free it. πŸ’€

🌸 SEE ALSO 🌸

  • mongoc_client_encryption_encrypt_string_suffix_opts_new() β€” the make-it counterpart to this break-it-down moment, go read that one too πŸ‘‘

🌈 AUTHOR 🌈

MongoDB, Inc β€” the whole entire company. noted. πŸ’œ


2009-present, MongoDB, Inc. β€” all rights reserved, all vibes reserved πŸŽ€


and that's the page!! libmongoc version 2.5.6, dated Oct 09, 2026 β€” going out with a little sign-off: go free your opts, hydrate, and remember that memory leaks are NOT it. bye bestie πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from