https://bugs.winehq.org/show_bug.cgi?id=36272
--- Comment #7 from Austin English austinenglish@gmail.com --- (In reply to Michael Stefaniuc from comment #5)
Patch for the last non MMDRV_Init() based leak got committed: https://source.winehq.org/git/wine.git/?a=commit; h=5b96ed0207e5a871682bf8ff53635fd655cfdfcc
But I'll let Austin validate my rationale and valgrind before resolving this bug.
I still see some after blacklisting MMDRV_Init() (wine-5.4-205-g3ddf3a720f):
==13437== 460 bytes in 1 blocks are definitely lost in loss record 885 of 1,120 ==13437== at 0x7BC6258C: notify_alloc (heap.c:260) ==13437== by 0x7BC653DA: RtlAllocateHeap (heap.c:1716) ==13437== by 0x7165973: synth_port_create (port.c:826) ==13437== by 0x7160ECD: IDirectMusic8Impl_CreatePort (dmusic.c:280) ==13437== by 0x7120FAA: ??? ==13437== by 0x7122BE6: ??? ==13437== by 0x4EE6924: test_pchannel (performance.c:355) ==13437== by 0x4EE87AC: func_performance (performance.c:656) ==13437== by 0x4EE8ADF: run_test (test.h:560) ==13437== by 0x4EE919E: main (test.h:648) ==13437==
==13437== 864 bytes in 1 blocks are definitely lost in loss record 996 of 1,120 ==13437== at 0x7BC6258C: notify_alloc (heap.c:260) ==13437== by 0x7BC653DA: RtlAllocateHeap (heap.c:1716) ==13437== by 0x1B7A346A: ??? ==13437== by 0x4EE829C: test_notification_type (performance.c:542) ==13437== by 0x4EE87B1: func_performance (performance.c:657) ==13437== by 0x4EE8ADF: run_test (test.h:560) ==13437== by 0x4EE919E: main (test.h:648) ==13437==