mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-02-04 04:50:26 +01: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:
parent
681bd1ed2a
commit
554df2a8d9
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue