[PATCH 5/5] telit: fix memory leaks in unit tests
Aleksander Morgado
aleksander at aleksander.es
Wed Jul 12 09:07:29 UTC 2017
On 12/07/17 10:03, Ben Chan wrote:
> ---
> plugins/telit/tests/test-mm-modem-helpers-telit.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Pushed to git master, thanks!
> 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;
> }
> }
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list