ublox: plug memleak when parsing UAUTHREQ test

This commit is contained in:
Aleksander Morgado
2017-09-26 13:45:17 +02:00
parent 4c36bd42d4
commit bda7b9a74a
+3 -2
View File
@@ -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;
}