DOKK / manpages / debian 10 / libbson-doc / bson_destroy.3.en
BSON_DESTROY(3) Libbson BSON_DESTROY(3)

bson_destroy - bson_destroy()

void
bson_destroy (bson_t *bson);


bson: A bson_t.

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

2017-present, MongoDB, Inc

February 23, 2019 1.14.0