bson_destroy - Man Page

Synopsis

void
bson_destroy (bson_t *bson);

Parameters

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

Info

Feb 04, 2026 1.30.7 libbson