aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-09-26 13:05:03 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-09-26 13:45:17 +0200
commitbda7b9a74a73429b9b48a259450274746ab3f44f (patch)
tree7a0c1de999d3efed2a13190d9358edf81fb5a2fe
parent4c36bd42d4fcbb13f7349bd50130dbc6bbf8597a (diff)
ublox: plug memleak when parsing UAUTHREQ test
-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;
}