Reference

bson_writer_destroy(3) on Linux

The text 43d275e0c42b, as Debian 9 (Stretch) shipped it.

Cleanup after writer and release any allocated memory. Note that the buffer supplied to bson_writer_new() is NOT freed from this method. The caller is responsible for that.

bson_writer_destroy(3) on Linux now