Skip to content

Commit 8c003b9

Browse files
committed
fix bson_new leak
1 parent f08d938 commit 8c003b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/tests/test-mongoc-sample-commands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2554,7 +2554,7 @@ test_example_change_stream (mongoc_database_t *db)
25542554
bson_t opts = BSON_INITIALIZER;
25552555
mongoc_change_stream_t *stream;
25562556
const bson_t *change;
2557-
const bson_t *resume_token = bson_new ();
2557+
const bson_t *resume_token;
25582558
bson_error_t error;
25592559

25602560
collection = mongoc_database_get_collection (db, "inventory");

0 commit comments

Comments
 (0)