MONGOC_CLIENT...E_OPTS_DESTROY(3)
π MONGOC_CLIENT...E_OPTS_DESTROY(3) β the cleanup era
okay bestie, listen up π this one is from libmongoc and it's basically the graceful exit of the encryption-range-opts world. no drama, no leaks, just a clean little destroy call. periodt.
β¨ SYNOPSIS β¨
void
mongoc_client_encryption_encrypt_range_opts_destroy (mongoc_client_encryption_encrypt_range_opts_t *range_opts);
New in version 1.24.0. π (yes she's a newer girlie, respect her timeline)
So what does she actually do? She frees resources of a mongoc_client_encryption_encrypt_range_opts_t β but specifically one that was created with mongoc_client_encryption_encrypt_range_opts_new(). That's the match, okay? new() made it, destroy() cleans it up. iconic symmetry. π¦
And the sweetest part: does nothing if NULL is passed. π«Ά no crash, no tantrum, no "bestie why". she just vibes and moves on. honestly? main character energy.
πΈ PARAMETERS πΈ
range_opts: Amongoc_client_encryption_encrypt_range_opts_t. that's the one getting the β¨cleanup treatmentβ¨
π lowkey important: this is a destroy function, so don't go using range_opts after you hand it over. she's gone, she's freed, don't text her again.
π SEE ALSO
mongoc_client_encryption_encrypt_range_opts_tβ go meet the family, iykyk π
π AUTHOR
MongoDB, Inc β¨
π COPYRIGHT
2009-present, MongoDB, Inc. β like, the whole era. we love longevity.
k byeee πβ¨ that was libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and free your range_opts, bestie, no memory leaks in this group chat π§ββοΈπΈ
π¦ 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