summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-26 18:44:49 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-27 10:38:51 +0200
commita1cf1e233fef337a58a2a991a00b1b099a6f2b02 (patch)
tree582da38db855c5b907c5caf074e87ad97395dfcb
parent8abc5808262cc3048983457d367533c786a19656 (diff)
mbimcli,phonebook: fix memory leaks
-rw-r--r--src/mbimcli/mbimcli-phonebook.c3
1 files changed, 3 insertions, 0 deletions
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;
}