summaryrefslogtreecommitdiff
path: root/source/common/adfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/common/adfile.c')
-rw-r--r--source/common/adfile.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/common/adfile.c b/source/common/adfile.c
index 0b70d69e226c8..41c27eebbbf3d 100644
--- a/source/common/adfile.c
+++ b/source/common/adfile.c
@@ -41,7 +41,7 @@
* POSSIBILITY OF SUCH DAMAGES.
*/
-
+#include "aslcompiler.h"
#include "acpi.h"
#include "accommon.h"
#include "acapps.h"
@@ -206,7 +206,7 @@ FlGenerateFilename (
* Copy the original filename to a new buffer. Leave room for the worst
* case where we append the suffix, an added dot and the null terminator.
*/
- NewFilename = ACPI_ALLOCATE_ZEROED ((ACPI_SIZE)
+ NewFilename = UtStringCacheCalloc ((ACPI_SIZE)
strlen (InputFilename) + strlen (Suffix) + 2);
if (!NewFilename)
{
@@ -255,7 +255,7 @@ FlStrdup (
char *NewString;
- NewString = ACPI_ALLOCATE ((ACPI_SIZE) strlen (String) + 1);
+ NewString = UtStringCacheCalloc ((ACPI_SIZE) strlen (String) + 1);
if (!NewString)
{
return (NULL);
@@ -337,7 +337,6 @@ FlSplitInputPathname (
if (!Filename)
{
- ACPI_FREE (DirectoryPath);
return (AE_NO_MEMORY);
}
@@ -349,6 +348,5 @@ FlSplitInputPathname (
return (AE_OK);
}
- ACPI_FREE (Filename);
return (AE_OK);
}