From 0aa39d284043be61b5f1222afdffd39a5abaf3aa Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Wed, 16 Apr 2014 09:31:01 +0000 Subject: ArmPlatformPkg/Bds: Do not free NULL pointer Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15473 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/Bds/Bds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ArmPlatformPkg/Bds') diff --git a/ArmPlatformPkg/Bds/Bds.c b/ArmPlatformPkg/Bds/Bds.c index d2b62252ed..ebad6feda7 100644 --- a/ArmPlatformPkg/Bds/Bds.c +++ b/ArmPlatformPkg/Bds/Bds.c @@ -337,7 +337,7 @@ DefineDefaultBootEntries ( if (DefaultBootArgument == (CHAR16*)PcdGetPtr (PcdDefaultBootArgument)) { FreePool (AsciiDefaultBootArgument); - } else { + } else if (DefaultBootArgument != NULL) { FreePool (DefaultBootArgument); } } else { -- cgit v1.2.3