sim-qmi: fix leak of the GArray containing the GID

Fixes 3238ccdbb2
This commit is contained in:
Aleksander Morgado
2022-08-25 15:53:08 +00:00
parent b9173176c2
commit 14d9b2d5d7

View File

@@ -571,8 +571,8 @@ uim_get_gid_ready (QmiClientUim *client,
GAsyncResult *res,
GTask *task)
{
GError *error = NULL;
GArray *read_result;
GError *error = NULL;
g_autoptr(GArray) read_result = NULL;
read_result = uim_read_finish (client, res, &error);
if (!read_result)