aes1610: Fix memory leak

Fix small memory leak when reading some data that's not going to be
processed.
This commit is contained in:
Bastien Nocera 2020-03-12 12:43:07 +01:00
parent ebe5cb58ba
commit 2581f1aa32

View file

@ -138,7 +138,7 @@ generic_read_ignore_data (FpiSsm *ssm, FpDevice *dev,
unsigned char *data;
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->short_is_error = TRUE;
fpi_usb_transfer_submit (transfer, BULK_TIMEOUT, NULL,