diff options
Diffstat (limited to 'source/compiler/aslopt.c')
-rw-r--r-- | source/compiler/aslopt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/compiler/aslopt.c b/source/compiler/aslopt.c index 05dd27bf5d6e0..1e9b55b93ad03 100644 --- a/source/compiler/aslopt.c +++ b/source/compiler/aslopt.c @@ -41,7 +41,6 @@ * POSSIBILITY OF SUCH DAMAGES. */ - #include "aslcompiler.h" #include "aslcompiler.y.h" @@ -168,7 +167,7 @@ OptSearchToRoot ( /* We must allocate a new string for the name (TargetPath gets deleted) */ - *NewPath = ACPI_ALLOCATE_ZEROED (ACPI_NAME_SIZE + 1); + *NewPath = UtStringCacheCalloc (ACPI_NAME_SIZE + 1); ACPI_STRCPY (*NewPath, Path); if (ACPI_STRNCMP (*NewPath, "_T_", 3)) |