aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-12 01:03:40 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-12 11:04:09 +0200
commitfe384625aa59c117ec99b943c6e0b09deea48a0d (patch)
treebf60928822e94a6b141cc03f10ae2d295c83336a
parent4fbdee1e6d0138e19e836bdf8531cd85b9338ffd (diff)
telit: fix memory leaks in unit tests
-rw-r--r--plugins/telit/tests/test-mm-modem-helpers-telit.c4
1 files 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;
}
}