Author: cwittich
Date: Fri Sep 4 07:55:30 2015
New Revision: 68978
URL:
http://svn.reactos.org/svn/reactos?rev=68978&view=rev
Log:
[WDMAUD.DRV] fix memory leak in error case CID 716484
Modified:
trunk/reactos/dll/win32/wdmaud.drv/legacy.c
Modified: trunk/reactos/dll/win32/wdmaud.drv/legacy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wdmaud.drv/legac…
==============================================================================
--- trunk/reactos/dll/win32/wdmaud.drv/legacy.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wdmaud.drv/legacy.c [iso-8859-1] Fri Sep 4 07:55:30 2015
@@ -668,6 +668,7 @@
if (Overlap->Standard.hEvent == NULL)
{
// no memory
+ HeapFree(GetProcessHeap(), 0, DeviceInfo);
return MMSYSERR_NOMEM;
}