26 lines
731 B
Diff
26 lines
731 B
Diff
From 8b28133beee5122c2a26c361cf2f2095888be2c2 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Berg <bberg@redhat.com>
|
|
Date: Mon, 25 Nov 2019 18:34:16 +0100
|
|
Subject: [PATCH 002/181] elan: Fix potential leak of dark frame
|
|
|
|
Dark frames would be leaked, add an explicit free to avoid this.
|
|
---
|
|
libfprint/drivers/elan.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/libfprint/drivers/elan.c b/libfprint/drivers/elan.c
|
|
index b417a41..6e9107e 100644
|
|
--- a/libfprint/drivers/elan.c
|
|
+++ b/libfprint/drivers/elan.c
|
|
@@ -223,6 +223,7 @@ elan_save_img_frame (FpiDeviceElan *elandev)
|
|
{
|
|
fp_dbg
|
|
("frame darker than background; finger present during calibration?");
|
|
+ g_free (frame);
|
|
return -1;
|
|
}
|
|
|
|
--
|
|
2.24.1
|
|
|