Mongo-c-driver version 1.25.1 - memory issues when executing mongoc_cursor_next()

Nothing seems out of the order on a quick glance. Running that example locally with ASAN also does not report leaks.
Do you have a sample collection that can be used to reproduce the issue?