aes1610: Fix memory leak
Fix small memory leak when reading some data that's not going to be processed.
This commit is contained in:
parent
ebe5cb58ba
commit
2581f1aa32
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ generic_read_ignore_data (FpiSsm *ssm, FpDevice *dev,
|
||||||
unsigned char *data;
|
unsigned char *data;
|
||||||
|
|
||||||
data = g_malloc (bytes);
|
data = g_malloc (bytes);
|
||||||
fpi_usb_transfer_fill_bulk_full (transfer, EP_IN, data, bytes, NULL);
|
fpi_usb_transfer_fill_bulk_full (transfer, EP_IN, data, bytes, g_free);
|
||||||
transfer->ssm = ssm;
|
transfer->ssm = ssm;
|
||||||
transfer->short_is_error = TRUE;
|
transfer->short_is_error = TRUE;
|
||||||
fpi_usb_transfer_submit (transfer, BULK_TIMEOUT, NULL,
|
fpi_usb_transfer_submit (transfer, BULK_TIMEOUT, NULL,
|
||||||
|
|
Loading…
Reference in a new issue