| BSON_DESTROY(3) | libbson | BSON_DESTROY(3) |
void bson_destroy (bson_t *bson);
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.
MongoDB, Inc
2009-present, MongoDB, Inc.
| May 7, 2025 | 1.30.4 |