modem-helpers: plug a leak when parsing CREG responses

This commit is contained in:
Aleksander Morgado
2011-12-30 19:32:30 +01:00
parent d38787c460
commit a2b578d755

View File

@@ -394,6 +394,7 @@ mm_gsm_parse_creg_response (GMatchInfo *info,
str = g_match_info_fetch (info, 1);
if (str && strstr (str, "CGREG"))
*out_cgreg = TRUE;
g_free (str);
/* Normally the number of matches could be used to determine what each
* item is, but we have overlap in one case.