usb: fix use after free
Found by: Coverity scan. CID: 96704
This commit is contained in:
parent
e261fcf4c6
commit
cf0b0306d8
1 changed files with 1 additions and 1 deletions
|
@ -311,8 +311,8 @@ grub_usb_bulk_finish_readwrite (grub_usb_transfer_t transfer)
|
||||||
transfer->size + 1);
|
transfer->size + 1);
|
||||||
|
|
||||||
grub_free (transfer->transactions);
|
grub_free (transfer->transactions);
|
||||||
grub_free (transfer);
|
|
||||||
grub_dma_free (transfer->data_chunk);
|
grub_dma_free (transfer->data_chunk);
|
||||||
|
grub_free (transfer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static grub_usb_err_t
|
static grub_usb_err_t
|
||||||
|
|
Loading…
Reference in a new issue