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).
This commit is contained in:
Robert Moore 2013-10-05 18:12:54 -07:00
parent 6eb79cc888
commit 04ab584f78

View File

@ -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);
}