refs #1252 fix mongo memory leak and double free
refs #1252 fix mongo memory leak and double free

Elastica/mongo-c-driver-legacy,Elastica/mongo-c-driver-legacy,Elastica/mongo-c-driver-legacy,Elastica/mongo-c-driver-legacy