[PATCH] mbimcli: avoid calling mbim_message_unref on NULL MbimMessage

Aleksander Morgado aleksander at aleksander.es
Wed Jul 26 10:14:11 UTC 2017


On 26/07/17 08:42, Ben Chan wrote:
> ---
>  src/mbimcli/mbimcli-basic-connect.c | 1 -
>  1 file changed, 1 deletion(-)
> 

Pushed to git master and mbim-1-4, thanks.

> diff --git a/src/mbimcli/mbimcli-basic-connect.c b/src/mbimcli/mbimcli-basic-connect.c
> index e1d40d1..a4e9b3f 100644
> --- a/src/mbimcli/mbimcli-basic-connect.c
> +++ b/src/mbimcli/mbimcli-basic-connect.c
> @@ -761,7 +761,6 @@ ip_configuration_query (MbimDevice *device,
>      if (!message) {
>          g_printerr ("error: couldn't create IP config request: %s\n", error->message);
>          g_error_free (error);
> -        mbim_message_unref (message);
>          shutdown (FALSE);
>          return;
>      }
> 


-- 
Aleksander
https://aleksander.es


More information about the libmbim-devel mailing list