elan: Fix potential leak of dark frame

Dark frames would be leaked, add an explicit free to avoid this.
This commit is contained in:
Benjamin Berg 2019-11-25 18:34:16 +01:00
parent 7a4dd96406
commit 8b28133bee

View file

@ -223,6 +223,7 @@ elan_save_img_frame (FpiDeviceElan *elandev)
{ {
fp_dbg fp_dbg
("frame darker than background; finger present during calibration?"); ("frame darker than background; finger present during calibration?");
g_free (frame);
return -1; return -1;
} }