Commit 9498800f authored by Bastien Nocera's avatar Bastien Nocera Committed by Daniel Drake

More cleanups

Some objects were leaked when no devices were available. Plug those
parent b2b81d0d
......@@ -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);
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;
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