diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-10-17 00:06:42 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-10-17 00:06:42 +0000 |
commit | a6028f7332dbf61541a4482e402bf346dad53118 (patch) | |
tree | 3908357b831dbb78c746f73c443b4d7ba5e966f9 /source/components/namespace/nsxfeval.c | |
parent | 59ce063597ddbda74269a45aba8187dece2fe00a (diff) |
Notes
Diffstat (limited to 'source/components/namespace/nsxfeval.c')
-rw-r--r-- | source/components/namespace/nsxfeval.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/components/namespace/nsxfeval.c b/source/components/namespace/nsxfeval.c index 007ade31bd8a..a1af583a6001 100644 --- a/source/components/namespace/nsxfeval.c +++ b/source/components/namespace/nsxfeval.c @@ -44,6 +44,7 @@ #define __NSXFEVAL_C__ +#define EXPORT_ACPI_INTERFACES #include "acpi.h" #include "accommon.h" @@ -148,8 +149,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; } |