summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2013-09-19 07:44:29 -0700
committerRobert Moore <Robert.Moore@intel.com>2013-09-19 07:44:29 -0700
commit24298543de2adf78e08c7a842c2fb95c70ca603d (patch)
tree00912e35f7054aba3a67d6e69751a3dcb39a3c8f
parent68be8c5b8db438f6f21e0b029480a6a5b644d9b1 (diff)
downloadacpica-24298543de2adf78e08c7a842c2fb95c70ca603d.tar.gz
Update comment: no functional change.
Adds a comment to clarify reason for using AcpiOsFree directly instead of ACPI_FREE.
-rw-r--r--source/components/namespace/nsxfeval.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/components/namespace/nsxfeval.c b/source/components/namespace/nsxfeval.c
index 9d2fac1c3..d8b34807c 100644
--- a/source/components/namespace/nsxfeval.c
+++ b/source/components/namespace/nsxfeval.c
@@ -221,8 +221,12 @@ AcpiEvaluateObjectTyped (
if (MustFree)
{
- /* Caller used ACPI_ALLOCATE_BUFFER, free the return buffer */
-
+ /*
+ * Caller used ACPI_ALLOCATE_BUFFER, free the return buffer.
+ * Note: We use AcpiOsFree here because AcpiOsAllocate was used
+ * to allocate the buffer. This purposefully bypasses the internal
+ * allocation tracking mechanism (if it is enabled).
+ */
AcpiOsFree (ReturnBuffer->Pointer);
ReturnBuffer->Pointer = NULL;
}