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