From 352f3572ad387514893527b7f7e3d81089a2897c Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 27 Nov 2008 02:07:59 +0000 Subject: [PATCH] Fix ECC issue for GenericBdsLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6744 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/GenericBdsLib/BdsConsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c index 999de49ba3..af3572ff7d 100644 --- a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c +++ b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c @@ -166,7 +166,7 @@ BdsLibUpdateConsoleVariable ( if (VarConsole != NULL) { FreePool(VarConsole); } - if (NewDevicePath) { + if (NewDevicePath != NULL) { FreePool(NewDevicePath); } }