From 5c5a4f69071bbbfcda9a5a149e9c90f01db8a5fc Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 15 Apr 2020 15:51:51 +0200 Subject: [PATCH] upekts: Fix memory leak Don't allocate a new finger print structure, the fpi_device_get_enroll_data() just below will overwrite it. --- libfprint/drivers/upekts.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libfprint/drivers/upekts.c b/libfprint/drivers/upekts.c index 08e98c6..5d0790a 100644 --- a/libfprint/drivers/upekts.c +++ b/libfprint/drivers/upekts.c @@ -1119,7 +1119,6 @@ e_handle_resp02 (FpDevice *dev, unsigned char *data, else { GVariant *fp_data; - print = fp_print_new (dev); fpi_device_get_enroll_data (dev, &print);