MONGOC_CLIENT...X_OPTS_DESTROY(3)
π 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β amongoc_client_encryption_encrypt_string_suffix_opts_tthat 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. π
β COPYRIGHT β
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
- 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