From 7c9fbd79d1fc8b817acb72c61cc19605d2f24907 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Mon, 7 May 2012 08:51:42 +0000 Subject: Fix memory leak issues. Signed-off-by: Eric Dong Reviewed-by: Liming Gao Reviewed-by: Li Elvin Reviewed-by: Ruiyu Ni git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13288 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg/Library') diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c index 9993e4b19d..ada77d26de 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -739,9 +739,11 @@ BdsLibVariableToOption ( } FreePool (Variable); + FreePool (Option->Description); + FreePool (Option->DevicePath); + FreePool (Option->LoadOptions); FreePool (Option); return NULL; - } /** -- cgit v1.2.3