usb: fix use after free

Found by: Coverity scan.
CID: 96704
This commit is contained in:
Andrei Borzenkov 2015-06-20 23:38:18 +03:00
parent e261fcf4c6
commit cf0b0306d8

View file

@ -311,8 +311,8 @@ grub_usb_bulk_finish_readwrite (grub_usb_transfer_t transfer)
transfer->size + 1);
grub_free (transfer->transactions);
grub_free (transfer);
grub_dma_free (transfer->data_chunk);
grub_free (transfer);
}
static grub_usb_err_t