Skip to content

Commit

Permalink
Fix possible double-free.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlo committed May 9, 2016
1 parent 0d655a2 commit 54853a2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/connectors/usb_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ static int submit_transfer(struct libusb_transfer * transfer)
{
fprintf(stderr, "libusb_submit_transfer: %s.\n", libusb_strerror(ret));
remove_transfer(transfer);
free(transfer->buffer);
libusb_free_transfer(transfer);
return -1;
}
Expand Down

0 comments on commit 54853a2

Please sign in to comment.