Skip to content

Commit 2fce142

Browse files
author
Christian Hergert
committed
tests: release cursor when we have finished with it.
1 parent 22a5ecb commit 2fce142

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test-mongoc-client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ test_mongoc_client_command (void)
373373
assert (!r);
374374
assert (!doc);
375375

376+
mongoc_cursor_destroy (cursor);
376377
mongoc_client_destroy (client);
377378
bson_destroy (&cmd);
378379
}

0 commit comments

Comments
 (0)