Reference

bson_append_array_end(3) on Linux

The text 7dcb3e0016f3, as Debian 9 (Stretch) shipped it.

The bson_append_array_end() function shall complete the appending of an array field started with bson_append_array_begin(). child is invalid after calling this function.

bson_append_array_end(3) on Linux now