mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
More cleanups
Some objects were leaked when no devices were available. Plug those leaks.
This commit is contained in:
committed by
Daniel Drake
parent
b2b81d0df9
commit
9498800f20
@ -370,12 +370,17 @@ static int do_auth(pam_handle_t *pamh, const char *username)
|
||||
|
||||
dev = open_device(pamh, connection, manager, username);
|
||||
g_object_unref (manager);
|
||||
if (!dev)
|
||||
if (!dev) {
|
||||
g_main_loop_unref (loop);
|
||||
dbus_g_connection_unref (connection);
|
||||
return PAM_AUTHINFO_UNAVAIL;
|
||||
}
|
||||
ret = do_verify(loop, pamh, dev);
|
||||
|
||||
g_main_loop_unref (loop);
|
||||
release_device(pamh, dev);
|
||||
g_object_unref (dev);
|
||||
dbus_g_connection_unref (connection);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user