bson_destroy man page

bson_destroy() — The bson_destroy() function shall free an allocated bson_t structure.

Synopsis

void
bson_destroy (bson_t *bson);

Parameters

bson
A bson_t

Description

The bson_destroy(3) function shall free an allocated bson_t structure.

This function should always be called when you are done with a bson_t unless otherwise specified.

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Referenced By

bson_copy(3), bson_new(3), bson_reinit(3), bson_sized_new(3), bson_t(3), mongoc_bulk_operation_execute(3), mongoc_client_command_simple(3), mongoc_client_get_server_status(3), mongoc_client_read_command_with_opts(3), mongoc_client_read_write_command_with_opts(3), mongoc_client_write_command_with_opts(3), mongoc_collection_create_index_with_opts(3), mongoc_collection_read_command_with_opts(3), mongoc_collection_read_write_command_with_opts(3), mongoc_collection_validate(3), mongoc_collection_write_command_with_opts(3), mongoc_database_read_command_with_opts(3), mongoc_database_read_write_command_with_opts(3), mongoc_database_write_command_with_opts(3).

2016‐10‐28 libbson