Skip to content

Commit

Permalink
cherry-pick Fix use after free. saki4510t#403
Browse files Browse the repository at this point in the history
  • Loading branch information
cqm committed Nov 24, 2023
1 parent 31c85bf commit 8c68166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libuvccamera/src/main/jni/libusb/libusb/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ void API_EXPORTED libusb_free_transfer(struct libusb_transfer *transfer) {
itransfer = LIBUSB_TRANSFER_TO_USBI_TRANSFER(transfer);
usbi_mutex_destroy(&itransfer->lock);
free(itransfer);
transfer->user_data = NULL; // XXX
//transfer->user_data = NULL; // XXX
}

#ifdef USBI_TIMERFD_AVAILABLE
Expand Down

0 comments on commit 8c68166

Please sign in to comment.