Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Deprecated since version 1.29.0.

Author

       MongoDB, Inc

Description

       Frees the bson_string_t structure and optionally string->str.

Parameters

string: A bson_string_t.

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

Returns

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

Synopsis

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

Warning:

          Deprecated since version 1.29.0.

See Also