[HIDCLASS][USBHUB]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 4 Sep 2015 17:31:58 +0000 (17:31 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 4 Sep 2015 17:31:58 +0000 (17:31 +0000)
- Fix IRP leaks in success case of hidclass!HidClassFDO_GetDescriptors and usbhub!FowardUrbToRootHub

svn path=/trunk/; revision=69008

reactos/drivers/hid/hidclass/fdo.c
reactos/drivers/usb/usbhub/pdo.c

index 3eab30d..3b1ccbd 100644 (file)
@@ -384,6 +384,7 @@ HidClassFDO_GetDescriptors(
     //
     // completed successfully
     //
+    IoFreeIrp(Irp);
     return STATUS_SUCCESS;
 }
 
index 9c3e068..7813920 100644 (file)
@@ -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
     //