Man page - bson_string_free(3)

Packages contas this manual

Manual

BSON_STRING_FREE(3) libbson BSON_STRING_FREE(3)

WARNING:

Deprecated since version 1.29.0.



char *
bson_string_free (bson_string_t *string, bool free_segment);


  • string: A bson_string_t.
  • free_segment: A bool indicating whether string->str should be freed.

Frees the bson_string_t structure and optionally string->str.

string->str if free_segment is false, otherwise NULL.

MongoDB, Inc

2009-present, MongoDB, Inc.

December 18, 2025 1.30.4