summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-09 01:39:56 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2012-08-09 01:39:56 +0000
commitaaee3a97fbc868149b5cdc18042603b7626f42c2 (patch)
tree672e797c64c57d902406711a2b31b7c3e75520e6
parent30d1bcd1318365098373629453924a8291d5081d (diff)
downloadedk2-platforms-aaee3a97fbc868149b5cdc18042603b7626f42c2.tar.xz
Fix memory leak
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Chao Zhang<chao.b.zhang@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13601 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c
index 2245fc7473..fe96e2c098 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c
@@ -410,6 +410,10 @@ BdsLibConnectUsbDevByShortFormDP(
}
}
+ if (HandleArray != NULL) {
+ FreePool (HandleArray);
+ }
+
if (AtLeastOneConnected) {
return EFI_SUCCESS;
}