From 2581f1aa3256af4c4566847b4a0e4e8147895a73 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 12 Mar 2020 12:43:07 +0100 Subject: [PATCH] aes1610: Fix memory leak Fix small memory leak when reading some data that's not going to be processed. --- libfprint/drivers/aes1610.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/drivers/aes1610.c b/libfprint/drivers/aes1610.c index bc39b24..4ea2ff3 100644 --- a/libfprint/drivers/aes1610.c +++ b/libfprint/drivers/aes1610.c @@ -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,