[PATCH 2/5] telit: fix memory leak in mm_telit_get_4g_mm_bands
Ben Chan
benchan at chromium.org
Wed Jul 12 08:03:37 UTC 2017
---
plugins/telit/mm-modem-helpers-telit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/telit/mm-modem-helpers-telit.c b/plugins/telit/mm-modem-helpers-telit.c
index 39e0d1bd..d0e50ab3 100644
--- a/plugins/telit/mm-modem-helpers-telit.c
+++ b/plugins/telit/mm-modem-helpers-telit.c
@@ -472,6 +472,7 @@ mm_telit_get_4g_mm_bands(GMatchInfo *match_info,
goto end;
}
sscanf (tokens[1], "%d", &value);
+ g_strfreev (tokens);
} else {
sscanf (match_str, "%d", &value);
}
--
2.13.2.932.g7449e964c-goog
More information about the ModemManager-devel
mailing list