Author: tfaber
Date: Sat Apr 9 16:16:12 2016
New Revision: 71129
URL:
http://svn.reactos.org/svn/reactos?rev=71129&view=rev
Log:
[NTOS:WMI]
- Avoid a memory leak in failure case of WmipGetRawSMBiosTableData.
CORE-11095 #resolve
Modified:
trunk/reactos/ntoskrnl/wmi/smbios.c
Modified: trunk/reactos/ntoskrnl/wmi/smbios.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/wmi/smbios.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/wmi/smbios.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/wmi/smbios.c [iso-8859-1] Sat Apr 9 16:16:12 2016
@@ -196,6 +196,7 @@
TableMapping = MmMapIoSpace(PhysicalAddress, TableSize, MmCached);
if (TableMapping == NULL)
{
+ ExFreePoolWithTag(BiosTables, 'BTMS');
return STATUS_UNSUCCESSFUL;
}