[USBPORT] Fix ControllerName leak in USBPORT_GetUnicodeName (CID 1419258).

This commit is contained in:
Thomas Faber
2017-10-13 23:36:29 +02:00
committed by Thomas Faber
parent b5289a2f6e
commit a237edf4bb
+1
View File
@@ -276,6 +276,7 @@ USBPORT_GetUnicodeName(IN PDEVICE_OBJECT FdoDevice,
if (ControllerName->Header.UsbUserStatusCode != UsbUserSuccess)
{
ExFreePoolWithTag(ControllerName, USB_PORT_TAG);
return STATUS_UNSUCCESSFUL;
}