Commit 7df286c1 authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

winmm: Fix 8KB leak when mmioOpen fails (Valgrind).

parent 733d1763
......@@ -679,6 +679,8 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo, DWORD dwOpenFlags,
if (refmminfo->wErrorRet == 0)
return wm->info.hmmio;
error1:
if (wm->info.dwFlags & MMIO_ALLOCBUF)
HeapFree(GetProcessHeap(), 0, wm->info.pchBuffer);
if (wm->ioProc) wm->ioProc->count--;
error2:
MMIO_Destroy(wm);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment