elan: Fix potential leak of dark frame
Dark frames would be leaked, add an explicit free to avoid this.
This commit is contained in:
parent
7a4dd96406
commit
8b28133bee
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue