diff --git a/src/device.c b/src/device.c index df1b0f7..34dc571 100644 --- a/src/device.c +++ b/src/device.c @@ -602,6 +602,7 @@ static void dev_open_cb(FpDevice *dev, GAsyncResult *res, void *user_data) FPRINT_ERROR_INTERNAL, "Open failed with error: %s", error->message); dbus_g_method_return_error(session->context_claim_device, dbus_error); + g_clear_pointer(&priv->username, g_free); g_clear_pointer(&priv->session, g_free); return; }