From 04ab584f78c09758f67f67370b72e914f8c54ac9 Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Sat, 5 Oct 2013 18:12:54 -0700 Subject: [PATCH] iASL: Fix a couple of possible memory leaks during pathname processing. Couple of leaks in the error paths for AcpiFlSplitInputPathname. ACPICA BZ 1046. Colin Ian King (colin.king@canonical.com). --- source/common/adfile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/common/adfile.c b/source/common/adfile.c index fb8d648dd..d598ac88c 100644 --- a/source/common/adfile.c +++ b/source/common/adfile.c @@ -401,6 +401,7 @@ FlSplitInputPathname ( if (!Filename) { + ACPI_FREE (DirectoryPath); return (AE_NO_MEMORY); } @@ -409,6 +410,9 @@ FlSplitInputPathname ( if (OutFilename) { *OutFilename = Filename; + return (AE_OK); } + + ACPI_FREE (Filename); return (AE_OK); }