summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-07 08:51:42 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-07 08:51:42 +0000
commit7c9fbd79d1fc8b817acb72c61cc19605d2f24907 (patch)
treef1bd314d0d806b5661edef8cd6296804316ebcb5 /IntelFrameworkModulePkg/Library
parent834d3ccda0e471559b469e0dffc93fc7e891b06f (diff)
Fix memory leak issues.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13288 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Library')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
index 9993e4b19..ada77d26d 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;
-
}
/**