[WDMAUD.DRV] fix memory leak in error case CID 716484

svn path=/trunk/; revision=68978
This commit is contained in:
Christoph von Wittich 2015-09-04 07:55:30 +00:00
parent 7e866d72cd
commit febb71907e

View file

@ -668,6 +668,7 @@ WdmAudCommitWaveBufferByLegacy(
if (Overlap->Standard.hEvent == NULL)
{
// no memory
HeapFree(GetProcessHeap(), 0, DeviceInfo);
return MMSYSERR_NOMEM;
}