mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[WDMAUD.DRV] fix memory leak in error case CID 716484
svn path=/trunk/; revision=68978
This commit is contained in:
parent
7e866d72cd
commit
febb71907e
|
@ -668,6 +668,7 @@ WdmAudCommitWaveBufferByLegacy(
|
|||
if (Overlap->Standard.hEvent == NULL)
|
||||
{
|
||||
// no memory
|
||||
HeapFree(GetProcessHeap(), 0, DeviceInfo);
|
||||
return MMSYSERR_NOMEM;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue