[PATCH 5/6] mbimcli,ms-firmware-id: fix memory leaks

Aleksander Morgado aleksander at aleksander.es
Thu Jul 27 09:01:23 UTC 2017


On 27/07/17 03:44, Ben Chan wrote:
> ---
>  src/mbimcli/mbimcli-ms-firmware-id.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Pushed to git master, mbim-1-14, mbim-1-12 and mbim-1-10.

> diff --git a/src/mbimcli/mbimcli-ms-firmware-id.c b/src/mbimcli/mbimcli-ms-firmware-id.c
> index 69d662e..f310b23 100644
> --- a/src/mbimcli/mbimcli-ms-firmware-id.c
> +++ b/src/mbimcli/mbimcli-ms-firmware-id.c
> @@ -131,6 +131,7 @@ query_firmware_id_ready (MbimDevice   *device,
>              &error)) {
>          g_printerr ("error: couldn't parse response message: %s\n", error->message);
>          g_error_free (error);
> +        mbim_message_unref (response);
>          shutdown (FALSE);
>          return;
>      }
> 


-- 
Aleksander
https://aleksander.es


More information about the libmbim-devel mailing list