https://bugs.winehq.org/show_bug.cgi?id=36150
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Typelib is release in DllMain, but not if a process is terminated. So it's a same thing as for many other reports - optimization on process termination makes it look to valgrind likes it's leaking.