mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
utils: Fix memory leak when error is ignored in list
If we get a `NoEnrolledPrints` error while list, we don't consider it an hard error and in such case we proceed to releasing the device, but without clearing the previously set error first.
This commit is contained in:
@ -55,6 +55,7 @@ static void list_fingerprints(DBusGProxy *dev, const char *username)
|
||||
g_print("ListEnrolledFingers failed: %s\n", error->message);
|
||||
exit (1);
|
||||
} else {
|
||||
g_clear_error (&error);
|
||||
fingers = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user