Skip to content

Commit 7c61dba

Browse files
authored
fix leak in tests (#714)
coverity cid: 116836
1 parent c45bfe2 commit 7c61dba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libmongoc/tests/test-mongoc-mongohouse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ cmd_started_cb (const mongoc_apm_command_started_t *event)
111111
/* If the ns does not match, return without validating. */
112112
if (strcmp (test->cursor_ns, ns) != 0) {
113113
bson_mutex_unlock (&test->mutex);
114+
bson_free (ns);
114115
return;
115116
}
116117

0 commit comments

Comments
 (0)