Skip to content

Commit d918125

Browse files
committed
CDRIVER-523 - leaks in tests
1 parent 5401824 commit d918125

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test-bulk.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,7 @@ test_large_inserts_ordered ()
17631763
mongoc_collection_remove (collection, MONGOC_REMOVE_NONE, tmp_bson ("{}"),
17641764
NULL, NULL);
17651765

1766+
bson_destroy (&reply);
17661767
mongoc_bulk_operation_destroy (bulk);
17671768
bulk = mongoc_collection_create_bulk_operation (collection, true, NULL);
17681769
assert (bulk);
@@ -1832,6 +1833,7 @@ test_large_inserts_unordered ()
18321833
mongoc_collection_remove (collection, MONGOC_REMOVE_NONE, tmp_bson ("{}"),
18331834
NULL, NULL);
18341835

1836+
bson_destroy (&reply);
18351837
mongoc_bulk_operation_destroy (bulk);
18361838
bulk = mongoc_collection_create_bulk_operation (collection, false, NULL);
18371839
assert (bulk);
@@ -1894,6 +1896,7 @@ test_numerous_inserts ()
18941896
mongoc_collection_remove (collection, MONGOC_REMOVE_NONE, tmp_bson ("{}"),
18951897
NULL, NULL);
18961898

1899+
bson_destroy (&reply);
18971900
mongoc_bulk_operation_destroy (bulk);
18981901
bulk = mongoc_collection_create_bulk_operation (collection, true, NULL);
18991902
assert (bulk);

0 commit comments

Comments
 (0)