From 9c806e60f46b96bd52f7bccc8e02dd167eb51e20 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 6 Dec 2019 16:30:34 +0100 Subject: [PATCH] elan: Do not leak converted frames The elan driver converts frames into a different format. These frames are only needed to assemable the image and should be free'ed afterwards. Fixes: #213 --- libfprint/drivers/elan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfprint/drivers/elan.c b/libfprint/drivers/elan.c index 9495a48..415aaef 100644 --- a/libfprint/drivers/elan.c +++ b/libfprint/drivers/elan.c @@ -321,6 +321,8 @@ elan_submit_image (FpImageDevice *dev) fpi_do_movement_estimation (&assembling_ctx, frames); img = fpi_assemble_frames (&assembling_ctx, frames); + g_slist_free_full (frames, g_free); + fpi_image_device_image_captured (dev, img); }