Skip to content

Commit 87b6a54

Browse files
committed
read write concern test leak fixed
1 parent 69279c5 commit 87b6a54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libmongoc/tests/test-mongoc-read-write-concern.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ test_rw_concern_document (bson_t *scenario)
208208

209209
if (!valid) {
210210
BSON_ASSERT (rc == NULL || wc == NULL);
211+
mongoc_write_concern_destroy (wc);
212+
mongoc_read_concern_destroy (rc);
211213
continue;
212214
}
213215

0 commit comments

Comments
 (0)