[PATCH 2/6] mbimcli,phonebook: fix memory leaks
Ben Chan
benchan at chromium.org
Thu Jul 27 01:44:49 UTC 2017
---
src/mbimcli/mbimcli-phonebook.c | 3 +++
1 file changed, 3 insertions(+)
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;
}
--
2.14.0.rc0.400.g1c36432dff-goog
More information about the libmbim-devel
mailing list