mongodb/libbson — pull request #98 by amidvidy (2014-10-08 15:35:02+00:00)
Title: don't call bson_init on dst in bson_copy_to_excluding

This fixes a leak that occurs when using bson_copy_to_excluding to copy to a bson_t allocated on the heap. bson_init sets BSON_FLAG_STATIC, which prevents bson_free from being called in bson_destroy.