summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
diff options
context:
space:
mode:
authorAlcantara, Paulo <paulo.alc.cavalcanti@hp.com>2016-02-09 04:53:34 +0800
committerFeng Tian <feng.tian@intel.com>2016-02-24 12:37:19 +0800
commit2a09778d6f0c0a2ff67d9b2414dd9464306bd3aa (patch)
tree9b881ac2413a1f61fbc72d964604fc9e61c14baf /MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
parent5458faf845a8c0e2ee37499ad410bb8ba1d45b15 (diff)
downloadedk2-2a09778d6f0c0a2ff67d9b2414dd9464306bd3aa.tar.gz
edk2-2a09778d6f0c0a2ff67d9b2414dd9464306bd3aa.tar.bz2
edk2-2a09778d6f0c0a2ff67d9b2414dd9464306bd3aa.zip
MdeModulePkg/UsbBusDxe: Fix memory leak
Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara <paulo.alc.cavalcanti@hp.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
index e67a88541b..399b7a3b60 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
@@ -1372,6 +1372,8 @@ UsbBusRecursivelyConnectWantedUsbIo (
}
}
+ FreePool (UsbIoBuffer);
+
return EFI_SUCCESS;
}