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:
Olivier Martin 2014-04-16 09:31:01 +00:00 committed by oliviermartin
parent 8ecb9d1bee
commit 0aa39d2840
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ DefineDefaultBootEntries (
if (DefaultBootArgument == (CHAR16*)PcdGetPtr (PcdDefaultBootArgument)) {
FreePool (AsciiDefaultBootArgument);
} else {
} else if (DefaultBootArgument != NULL) {
FreePool (DefaultBootArgument);
}
} else {