[PATCH] libmm-glib: fix a memory leak of GMutex

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


On 02/06/14 22:35, Ben Chan wrote:
> ---
>  libmm-glib/mm-modem.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Pushed, thanks.

> diff --git a/libmm-glib/mm-modem.c b/libmm-glib/mm-modem.c
> index 3274a44..5221c2d 100644
> --- a/libmm-glib/mm-modem.c
> +++ b/libmm-glib/mm-modem.c
> @@ -2986,6 +2986,7 @@ finalize (GObject *object)
>  
>      g_mutex_clear (&self->priv->unlock_retries_mutex);
>      g_mutex_clear (&self->priv->supported_modes_mutex);
> +    g_mutex_clear (&self->priv->supported_capabilities_mutex);
>      g_mutex_clear (&self->priv->supported_bands_mutex);
>      g_mutex_clear (&self->priv->current_bands_mutex);
>  
> 


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list