[PATCH] mbimcli,dss: fix a potential memory leak in set_dss_ready
Ben Chan
benchan at chromium.org
Wed Jul 26 07:10:00 UTC 2017
---
src/mbimcli/mbimcli-dss.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mbimcli/mbimcli-dss.c b/src/mbimcli/mbimcli-dss.c
index c7424e6..76866b9 100644
--- a/src/mbimcli/mbimcli-dss.c
+++ b/src/mbimcli/mbimcli-dss.c
@@ -157,6 +157,8 @@ set_dss_ready (MbimDevice *device,
if (!response || !mbim_message_response_get_result (response, MBIM_MESSAGE_TYPE_COMMAND_DONE, &error)) {
g_printerr ("error: operation failed: %s\n", error->message);
g_error_free (error);
+ if (response)
+ mbim_message_unref (response);
shutdown (FALSE);
return;
}
--
2.14.0.rc0.400.g1c36432dff-goog
More information about the libmbim-devel
mailing list