[PATCH] cinterion: fix memory leaks in tests

Aleksander Morgado aleksander at aleksander.es
Tue Jun 3 01:53:50 PDT 2014


On 02/06/14 23:27, Ben Chan wrote:
> ---
>  plugins/cinterion/tests/test-modem-helpers-cinterion.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Pushed, thanks.

> diff --git a/plugins/cinterion/tests/test-modem-helpers-cinterion.c b/plugins/cinterion/tests/test-modem-helpers-cinterion.c
> index 5dc4f96..7604dfa 100644
> --- a/plugins/cinterion/tests/test-modem-helpers-cinterion.c
> +++ b/plugins/cinterion/tests/test-modem-helpers-cinterion.c
> @@ -66,6 +66,7 @@ common_test_scfg (const gchar *response,
>  
>      g_free (bands_str);
>      g_free (expected_bands_str);
> +    g_array_unref (bands);
>  }
>  
>  static void
> @@ -150,6 +151,7 @@ common_test_scfg_response (const gchar *response,
>  
>      g_free (bands_str);
>      g_free (expected_bands_str);
> +    g_array_unref (bands);
>  }
>  
>  static void
> 


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list