We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96cbcd3 commit 4283b1bCopy full SHA for 4283b1b
1 file changed
libusb/src/driver/transfer.c
@@ -164,11 +164,9 @@ NTSTATUS transfer(libusb_device_t* dev,
164
goto transfer_free;
165
}
166
167
+ /* Do not check this status code, as the request might complete during call,
168
+ so we do *not* want to free anything here as that would lead to double-free */
169
status = transfer_next(dev, irp, context);
- if (!NT_SUCCESS(status))
- {
170
- goto transfer_free;
171
- }
172
173
InterlockedExchange(&dev->pending_busy[endpoint->address], 0);
174
return status;
0 commit comments