mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 09:54:42 +03:00
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:
parent
6eb79cc888
commit
04ab584f78
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user