[PATCH 2/6] mbimcli,phonebook: fix memory leaks
Aleksander Morgado
aleksander at aleksander.es
Thu Jul 27 09:00:40 UTC 2017
On 27/07/17 03:44, Ben Chan wrote:
> ---
> src/mbimcli/mbimcli-phonebook.c | 3 +++
> 1 file changed, 3 insertions(+)
>
Pushed to git master, mbim-1-14, mbim-1-12 and mbim-1-10.
> diff --git a/src/mbimcli/mbimcli-phonebook.c b/src/mbimcli/mbimcli-phonebook.c
> index fe3de2c..2467cfd 100644
> --- a/src/mbimcli/mbimcli-phonebook.c
> +++ b/src/mbimcli/mbimcli-phonebook.c
> @@ -208,6 +208,7 @@ set_phonebook_write_ready (MbimDevice *device,
> if (!mbim_message_phonebook_write_response_parse (response, &error)) {
> g_printerr ("error: couldn't parse response message: %s\n", error->message);
> g_error_free (error);
> + mbim_message_unref (response);
> shutdown (FALSE);
> return;
> }
> @@ -275,6 +276,7 @@ query_phonebook_read_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;
> }
> @@ -326,6 +328,7 @@ query_phonebook_configuration_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