MONGOC_READ_PREFS_DESTROY(3)
π MONGOC_READ_PREFS_DESTROY(3) π
okay bestie, welcome to the libmongoc corner of the manual β this one's a tiny little icon and honestly kind of a palate cleanser π«Ά
β¨ SYNOPSIS β¨
void
mongoc_read_prefs_destroy (mongoc_read_prefs_t *read_prefs);
like, that's the whole thing. one function. no notes. she's simple, she's elegant, she does exactly one job π
π PARAMETERS π
read_prefsβ amongoc_read_prefs_t. that's the read preference you're about to send to the shadow realm, no cap π¦
πΈ DESCRIPTION πΈ
so basically: mongoc_read_prefs_destroy() frees a read preference and all its associated resources. everything it's holding onto? gone. released. returned to the universe π
and the bestie behaviour we love to see: it does nothing if read_prefs is NULL. so you don't have to do a vibe check before calling it β passing NULL is completely safe and it literally just chills π
periodt.
ngl this is the "cleanup era" function β call it when you're done with your mongoc_read_prefs_t so you're not out here leaking memory like it's a personality trait π
π AUTHOR π
MongoDB, Inc β the main characters themselves β¨
β COPYRIGHT β
2009-present, MongoDB, Inc. β iconic run, honestly π
and that's a wrap, bestie!! π¦ this page is from libmongoc version 2.5.6, dated Oct 09, 2026 β screenshot it, bookmark it, tattoo it on your forearm, iykyk ππ₯ slay responsibly and free your read prefs π§π
π¦ 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