[PATCH 5/6] mbimcli,ms-firmware-id: fix memory leaks

Ben Chan benchan at chromium.org
Thu Jul 27 01:44:52 UTC 2017


---
 src/mbimcli/mbimcli-ms-firmware-id.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mbimcli/mbimcli-ms-firmware-id.c b/src/mbimcli/mbimcli-ms-firmware-id.c
index 69d662e..f310b23 100644
--- a/src/mbimcli/mbimcli-ms-firmware-id.c
+++ b/src/mbimcli/mbimcli-ms-firmware-id.c
@@ -131,6 +131,7 @@ query_firmware_id_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