bson: add bson_clear() macro to free and set to zero a doc ptr.
bson_t *doc = bson_new(); bson_clear(&doc); assert(doc == NULL);
parent
435581d5
Please register or sign in to comment
bson_t *doc = bson_new(); bson_clear(&doc); assert(doc == NULL);