mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[USBPORT] Fix ControllerName leak in USBPORT_GetUnicodeName (CID 1419258).
This commit is contained in:
parent
b5289a2f6e
commit
a237edf4bb
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue