BSON_DESTROY(3)
π BSON_DESTROY π
okay bestie, welcome to bson_destroy from libbson β yes, the libbson, she's famous, we stan π«Ά this one's a short lil page but it's important, so pay attention fr fr.
β¨ SYNOPSIS β¨
void
bson_destroy (bson_t *bson);
literally that's it. one function, zero games. she does one job and she slays it π
π PARAMETERS π
bsonβ abson_t. that's the whole vibe check. it's a pointer to abson_t, bestie π
πΈ DESCRIPTION πΈ
so like, bson_destroy() shall free an allocated bson_t structure. that's the assignment. that's the whole assignment. she frees it, done, iconic π
and if bson is NULL? she does nothing. no crash, no drama, no scene in the group chat β just absolutely nothing, bestie π§ literally the most chill behaviour possible.
β important life rule: you should always call this function when you're done with abson_t, unless otherwise specified. every time. no cap. don't just leave yourbson_tsitting there unattended like a read receipt you never answered π
it really is that simple β call her when you're done, she cleans up, everyone moves on. main character energy but make it memory management πβ¨
π AUTHOR π
MongoDB, Inc β the ones who brought you this whole libbson situation. we love them for it π«Ά
π COPYRIGHT π
2009-present, MongoDB, Inc. β that's a long time of being iconic, ngl π
and that's the whole page, bestie! go forth and call bson_destroy() like the responsible little unix gremlin you are π¦
β version 2.5.6, dated Oct 09, 2026, brought to you with love by the libbson girlies ππ
π¦ where this page comes from
- epel 10: libbson-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