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

This commit is contained in:
Thomas Faber 2017-10-11 00:32:05 +02:00 committed by Thomas Faber
parent b5289a2f6e
commit a237edf4bb

View file

@ -276,6 +276,7 @@ USBPORT_GetUnicodeName(IN PDEVICE_OBJECT FdoDevice,
if (ControllerName->Header.UsbUserStatusCode != UsbUserSuccess) if (ControllerName->Header.UsbUserStatusCode != UsbUserSuccess)
{ {
ExFreePoolWithTag(ControllerName, USB_PORT_TAG);
return STATUS_UNSUCCESSFUL; return STATUS_UNSUCCESSFUL;
} }