From fe384625aa59c117ec99b943c6e0b09deea48a0d Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Wed, 12 Jul 2017 01:03:40 -0700 Subject: [PATCH] telit: fix memory leaks in unit tests --- 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; } }