diff options
Diffstat (limited to 'plugins/telit/mm-modem-helpers-telit.c')
-rw-r--r-- | plugins/telit/mm-modem-helpers-telit.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/telit/mm-modem-helpers-telit.c b/plugins/telit/mm-modem-helpers-telit.c index c2061fcd..54cd6a0c 100644 --- a/plugins/telit/mm-modem-helpers-telit.c +++ b/plugins/telit/mm-modem-helpers-telit.c @@ -701,11 +701,11 @@ common_parse_bnd_response (const gchar *response, gpointer log_object, GError **error) { - GError *inner_error = NULL; - GArray *bands = NULL; - GMatchInfo *match_info = NULL; - GRegex *r = NULL; - const gchar *load_bands_regex = NULL; + g_autoptr(GMatchInfo) match_info = NULL; + g_autoptr(GRegex) r = NULL; + GError *inner_error = NULL; + GArray *bands = NULL; + const gchar *load_bands_regex = NULL; static const gchar *load_bands_regex_4g_hex[] = { [LOAD_BANDS_TYPE_SUPPORTED] = "#BND:"MM_SUPPORTED_BANDS_2G MM_SUPPORTED_BANDS_3G MM_SUPPORTED_BANDS_4G_HEX, @@ -761,9 +761,6 @@ common_parse_bnd_response (const gchar *response, goto out; } out: - g_match_info_free (match_info); - g_regex_unref (r); - if (inner_error) { g_propagate_error (error, inner_error); g_clear_pointer (&bands, g_array_unref); |