Skip to content

Commit 3104b0b

Browse files
author
Christian Hergert
committed
tests: plug a couple small leaks.
1 parent f4e4148 commit 3104b0b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/test-mongoc-cursor.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ test_get_host (void)
4040
ASSERT_CMPINT (host.family, ==, hosts->family);
4141

4242
mongoc_uri_destroy(uri);
43+
mongoc_client_destroy (client);
44+
mongoc_cursor_destroy (cursor);
4345
}
4446

4547
static void

tests/test-mongoc-matcher.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ test_mongoc_matcher_basic (void)
6565

6666
assert(! mongoc_matcher_match(matcher, should_fail));
6767

68-
bson_destroy(query);
69-
bson_destroy(to_match);
70-
bson_destroy(should_fail);
68+
bson_destroy (query);
69+
bson_destroy (to_match);
70+
bson_destroy (should_fail);
71+
bson_destroy (&matcher_query);
7172

7273
mongoc_matcher_destroy(matcher);
7374
}

0 commit comments

Comments
 (0)