Commit 554df2a8 authored by Marco Trevisan's avatar Marco Trevisan
Browse files

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.
parent 681bd1ed
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment