Provided by: libbson-doc_1.30.2-1_all 

SYNOPSIS
void bson_destroy (bson_t *bson);
PARAMETERS
• bson: A bson_t.
DESCRIPTION
The bson_destroy() function shall free an allocated bson_t structure. Does nothing if bson is NULL. This function should always be called when you are done with a bson_t unless otherwise specified.
AUTHOR
MongoDB, Inc
COPYRIGHT
2009-present, MongoDB, Inc. 1.30.2 Mar 05, 2025 BSON_DESTROY(3)