diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2022-08-25 15:53:08 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2022-08-25 15:53:08 +0000 |
commit | 14d9b2d5d787d8f1ee0fe219db92d2a424eb014d (patch) | |
tree | 5165bc0a110624178a61b5b90b8b7573fe8d3a06 /src | |
parent | b9173176c29b335deb8b4e8eb7ac3082291d4de6 (diff) |
sim-qmi: fix leak of the GArray containing the GID
Fixes 3238ccdbb29e86acd2b3e5c0e45bee84f9da94b4
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-sim-qmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-sim-qmi.c b/src/mm-sim-qmi.c index da8d1266..429172c5 100644 --- a/src/mm-sim-qmi.c +++ b/src/mm-sim-qmi.c @@ -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) |