Discussion:
[edk2] [Patch] IntelFrameworkModulePkg: Fix a memory leak bug in BdsDxe driver.
Ruiyu Ni
2015-07-09 09:34:42 UTC
Permalink
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <***@intel.com>
Cc: Eric Dong <***@intel.com>
---
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
index adf84f4..6a0b525 100644
--- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
+++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
@@ -3,7 +3,7 @@
and manage the legacy boot option, all legacy boot option is getting from
the legacy BBS table.

-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -151,6 +151,7 @@ OrderLegacyBootOption4SameType (
FreePool (NewBootOption);
FreePool (DeviceTypeArray);
FreePool (BbsIndexArray);
+ FreePool (BootOrder);
}

/**
--
1.9.5.msysgit.1
Dong, Eric
2015-07-10 02:12:21 UTC
Permalink
Reviewed-by: Eric Dong <***@intel.com>

-----Original Message-----
From: Ni, Ruiyu
Sent: Thursday, July 09, 2015 5:35 PM
To: edk2-***@lists.sourceforge.net
Cc: Ni, Ruiyu; Dong, Eric
Subject: [Patch] IntelFrameworkModulePkg: Fix a memory leak bug in BdsDxe driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <***@intel.com>
Cc: Eric Dong <***@intel.com>
---
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
index adf84f4..6a0b525 100644
--- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
+++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
@@ -3,7 +3,7 @@
and manage the legacy boot option, all legacy boot option is getting from
the legacy BBS table.

-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -151,6 +151,7 @@ OrderLegacyBootOption4SameType (
FreePool (NewBootOption);
FreePool (DeviceTypeArray);
FreePool (BbsIndexArray);
+ FreePool (BootOrder);
}

/**
--
1.9.5.msysgit.1

Loading...