https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a237edf4bb5e0c0616ecd…
commit a237edf4bb5e0c0616ecde8dfc32df8cd8c3a589
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Oct 11 00:32:05 2017 +0200
[USBPORT] Fix ControllerName leak in USBPORT_GetUnicodeName (CID 1419258).
---
drivers/usb/usbport/ioctl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/usbport/ioctl.c b/drivers/usb/usbport/ioctl.c
index 7674391115..7322958889 100644
--- a/drivers/usb/usbport/ioctl.c
+++ b/drivers/usb/usbport/ioctl.c
@@ -276,6 +276,7 @@ USBPORT_GetUnicodeName(IN PDEVICE_OBJECT FdoDevice,
if (ControllerName->Header.UsbUserStatusCode != UsbUserSuccess)
{
+ ExFreePoolWithTag(ControllerName, USB_PORT_TAG);
return STATUS_UNSUCCESSFUL;
}