[PATCH 5/5] telit: fix memory leaks in unit tests
Ben Chan
benchan at chromium.org
Wed Jul 12 08:03:40 UTC 2017
---
plugins/telit/tests/test-mm-modem-helpers-telit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/telit/tests/test-mm-modem-helpers-telit.c b/plugins/telit/tests/test-mm-modem-helpers-telit.c
index 1a43846d..5f8638bc 100644
--- a/plugins/telit/tests/test-mm-modem-helpers-telit.c
+++ b/plugins/telit/tests/test-mm-modem-helpers-telit.c
@@ -230,7 +230,7 @@ test_parse_supported_bands_response (void) {
g_assert_cmpint (bands->len, ==, supported_band_mapping_tests[i].mm_bands_len);
- g_array_free (bands, FALSE);
+ g_array_free (bands, TRUE);
bands = NULL;
}
}
@@ -307,7 +307,7 @@ test_parse_current_bands_response (void) {
g_assert_cmpint (bands->len, ==, current_band_mapping_tests[i].mm_bands_len);
- g_array_free (bands, FALSE);
+ g_array_free (bands, TRUE);
bands = NULL;
}
}
--
2.13.2.932.g7449e964c-goog
More information about the ModemManager-devel
mailing list