mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
ArmPlatformPkg: Fixed memory leak after calling GetEnvironmentVariable()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15428 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d8dc9f0af5
commit
79480c8d7c
@ -86,6 +86,7 @@ BootOptionStart (
|
|||||||
(CHAR8*)(LinuxArguments + 1),
|
(CHAR8*)(LinuxArguments + 1),
|
||||||
FdtDevicePath);
|
FdtDevicePath);
|
||||||
|
|
||||||
|
FreePool (DefaultFdtDevicePath);
|
||||||
FreePool (FdtDevicePath);
|
FreePool (FdtDevicePath);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -118,6 +118,8 @@ BootAndroidBootImg (
|
|||||||
FreePool (RamdiskDevicePath);
|
FreePool (RamdiskDevicePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FreePool (FdtDevicePath);
|
||||||
|
|
||||||
// If we got here we do a confused face because BootLinuxFdt returned,
|
// If we got here we do a confused face because BootLinuxFdt returned,
|
||||||
// reporting success.
|
// reporting success.
|
||||||
DEBUG ((EFI_D_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n"));
|
DEBUG ((EFI_D_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user