diff --git a/src/device.c b/src/device.c index f6ab34f..06f5105 100644 --- a/src/device.c +++ b/src/device.c @@ -603,6 +603,8 @@ 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_slice_free(struct session_data, priv->session); + priv->session = NULL; return; }