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 27, 2023
1 parent 8c7f8be commit f324de4
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 f324de4

Please sign in to comment.