summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-26 18:44:50 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-27 10:38:51 +0200
commit716c4850b9c2c4bdaa07f18fdf364bdf0719786b (patch)
treea436f7605116c130117b006436cb6f0a983f5640
parenta1cf1e233fef337a58a2a991a00b1b099a6f2b02 (diff)
mbimcli,atds: fix memory leaks
-rw-r--r--src/mbimcli/mbimcli-atds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbimcli/mbimcli-atds.c b/src/mbimcli/mbimcli-atds.c
index b991120..916ad0c 100644
--- a/src/mbimcli/mbimcli-atds.c
+++ b/src/mbimcli/mbimcli-atds.c
@@ -149,6 +149,7 @@ query_signal_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;
}
@@ -273,6 +274,7 @@ query_location_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;
}