Provided by: libbson-doc_1.30.2-1_all 

WARNING:
Deprecated since version 1.29.0.
SYNOPSIS
char * bson_string_free (bson_string_t *string, bool free_segment);
PARAMETERS
• string: A bson_string_t. • free_segment: A bool indicating whether string->str should be freed.
DESCRIPTION
Frees the bson_string_t structure and optionally string->str.
RETURNS
string->str if free_segment is false, otherwise NULL.
AUTHOR
MongoDB, Inc
COPYRIGHT
2009-present, MongoDB, Inc. 1.30.2 Mar 05, 2025 BSON_STRING_FREE(3)