Skip to content

Commit 39dd640

Browse files
committed
fix leak in mock_server_t test utility
1 parent cf1bf7b commit 39dd640

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/mock-server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ mock_server_worker (void *data)
264264
mongoc_stream_close (stream);
265265
mongoc_stream_destroy (stream);
266266
bson_free(closure);
267+
_mongoc_buffer_destroy (&buffer);
267268

268269
RETURN (NULL);
269270
}

0 commit comments

Comments
 (0)