mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/Bds: Do not free NULL pointer
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@15473 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8ecb9d1bee
commit
0aa39d2840
|
@ -337,7 +337,7 @@ DefineDefaultBootEntries (
|
|||
|
||||
if (DefaultBootArgument == (CHAR16*)PcdGetPtr (PcdDefaultBootArgument)) {
|
||||
FreePool (AsciiDefaultBootArgument);
|
||||
} else {
|
||||
} else if (DefaultBootArgument != NULL) {
|
||||
FreePool (DefaultBootArgument);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue