[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:
Thomas Faber 2015-09-04 17:31:58 +00:00
parent cf0892e19e
commit a7eeecdfdb
2 changed files with 6 additions and 0 deletions

View file

@ -384,6 +384,7 @@ HidClassFDO_GetDescriptors(
// //
// completed successfully // completed successfully
// //
IoFreeIrp(Irp);
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }

View file

@ -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
// //