[PATCH] ublox: fix memory leaks in unit tests

Aleksander Morgado aleksander at aleksander.es
Wed Jul 12 09:01:54 UTC 2017


On 12/07/17 10:02, Ben Chan wrote:
> ---
>  plugins/ublox/tests/test-modem-helpers-ublox.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Pushed to git master, thanks.

> diff --git a/plugins/ublox/tests/test-modem-helpers-ublox.c b/plugins/ublox/tests/test-modem-helpers-ublox.c
> index 286a58af..c85eaeea 100644
> --- a/plugins/ublox/tests/test-modem-helpers-ublox.c
> +++ b/plugins/ublox/tests/test-modem-helpers-ublox.c
> @@ -480,6 +480,7 @@ test_urat_write_command (void)
>          command = mm_ublox_build_urat_set_command (urat_tests[i].allowed, urat_tests[i].preferred, &error);
>          g_assert_no_error (error);
>          g_assert_cmpstr (command, ==, urat_tests[i].command);
> +        g_free (command);
>      }
>  }
>  
> 


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list