https://bugs.winehq.org/show_bug.cgi?id=36296
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to Piotr Caban from comment #1)
This is caused by optimization that skips memory freeing when dll is unloaded on process exit. You need to disable it before using valgrind. Maybe we should think about a way of running the tests with cleanup code executed.
That would be very useful, for Coverity and maybe Clang or other tools as well.