From a237edf4bb5e0c0616ecde8dfc32df8cd8c3a589 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Wed, 11 Oct 2017 00:32:05 +0200 Subject: [PATCH] [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 76743911154..7322958889f 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; }