DOKK / manpages / debian 12 / libbson-doc / bson_string_free.3.en
BSON_STRING_FREE(3) libbson BSON_STRING_FREE(3)

bson_string_free - bson_string_free()

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

2017-present, MongoDB, Inc

October 20, 2022 1.23.1