mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +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:
@@ -384,6 +384,7 @@ HidClassFDO_GetDescriptors(
|
||||
//
|
||||
// completed successfully
|
||||
//
|
||||
IoFreeIrp(Irp);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +48,11 @@ UrbCompletion(
|
||||
//
|
||||
IoCompleteRequest(OriginalIrp, IO_NO_INCREMENT);
|
||||
|
||||
//
|
||||
// Free our allocated IRP
|
||||
//
|
||||
IoFreeIrp(Irp);
|
||||
|
||||
//
|
||||
// Return this status so the IO Manager doesnt mess with the Irp
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user