aboutsummaryrefslogtreecommitdiff
path: root/plugins/ublox/mm-modem-helpers-ublox.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ublox/mm-modem-helpers-ublox.c')
-rw-r--r--plugins/ublox/mm-modem-helpers-ublox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/ublox/mm-modem-helpers-ublox.c b/plugins/ublox/mm-modem-helpers-ublox.c
index d31b94ac..b0b4bf3e 100644
--- a/plugins/ublox/mm-modem-helpers-ublox.c
+++ b/plugins/ublox/mm-modem-helpers-ublox.c
@@ -1362,9 +1362,10 @@ mm_ublox_parse_uauthreq_test (const char *response,
out:
g_strfreev (split);
+ if (allowed_auths)
+ g_array_unref (allowed_auths);
+
if (inner_error) {
- if (allowed_auths)
- g_array_unref (allowed_auths);
g_propagate_error (error, inner_error);
return MM_UBLOX_BEARER_ALLOWED_AUTH_UNKNOWN;
}