mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[HIDCLASS][USBHUB]
- Fix IRP leaks in success case of hidclass!HidClassFDO_GetDescriptors and usbhub!FowardUrbToRootHub svn path=/trunk/; revision=69008
This commit is contained in:
parent
cf0892e19e
commit
a7eeecdfdb
2 changed files with 6 additions and 0 deletions
|
@ -384,6 +384,7 @@ HidClassFDO_GetDescriptors(
|
||||||
//
|
//
|
||||||
// completed successfully
|
// completed successfully
|
||||||
//
|
//
|
||||||
|
IoFreeIrp(Irp);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,11 @@ UrbCompletion(
|
||||||
//
|
//
|
||||||
IoCompleteRequest(OriginalIrp, IO_NO_INCREMENT);
|
IoCompleteRequest(OriginalIrp, IO_NO_INCREMENT);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Free our allocated IRP
|
||||||
|
//
|
||||||
|
IoFreeIrp(Irp);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Return this status so the IO Manager doesnt mess with the Irp
|
// Return this status so the IO Manager doesnt mess with the Irp
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue