[ros-diffs] [cgutman] 53258: [ACPI] - Fix a NULL free bug

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Aug 15 07:35:06 UTC 2011


Author: cgutman
Date: Mon Aug 15 07:35:04 2011
New Revision: 53258

URL: http://svn.reactos.org/svn/reactos?rev=53258&view=rev
Log:
[ACPI]
- Fix a NULL free bug

Modified:
    trunk/reactos/drivers/bus/acpi/busmgr/utils.c

Modified: trunk/reactos/drivers/bus/acpi/busmgr/utils.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/busmgr/utils.c?rev=53258&r1=53257&r2=53258&view=diff
==============================================================================
--- trunk/reactos/drivers/bus/acpi/busmgr/utils.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/busmgr/utils.c [iso-8859-1] Mon Aug 15 07:35:04 2011
@@ -368,7 +368,8 @@
 		//ExFreePool(list->handles);
 	}
 
-	AcpiOsFree(buffer.Pointer);
+    if (buffer.Pointer)
+        AcpiOsFree(buffer.Pointer);
 
 	return_ACPI_STATUS(status);
 }




More information about the Ros-diffs mailing list