From e3e837a8a777a3c4404f8d598eb68c7467f53b19 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 9 Jan 2020 14:06:14 +0100 Subject: [PATCH] broadband-modem-qmi: plug memleak when checking unlock status with DMS UIM ==990910== 28 bytes in 1 blocks are definitely lost in loss record 1,943 of 5,051 ==990910== at 0x483877F: malloc (vg_replace_malloc.c:309) ==990910== by 0x50D53DA: g_malloc (gmem.c:99) ==990910== by 0x50F19ED: g_slice_alloc (gslice.c:1024) ==990910== by 0x50F1A2D: g_slice_alloc0 (gslice.c:1050) ==990910== by 0x4A3FD4A: __qmi_message_dms_uim_get_pin_status_response_parse (qmi-dms.c:8212) ==990910== by 0x4A6AFEA: uim_get_pin_status_ready (qmi-dms.c:31662) ==990910== by 0x4EADC8B: g_simple_async_result_complete (gsimpleasyncresult.c:802) ==990910== by 0x4EADCBF: complete_in_idle_cb.lto_priv.0 (gsimpleasyncresult.c:814) ==990910== by 0x50CF4AE: g_idle_dispatch (gmain.c:5617) ==990910== by 0x50CC6F0: g_main_dispatch (gmain.c:3179) ==990910== by 0x50CD616: g_main_context_dispatch (gmain.c:3844) ==990910== by 0x50CD81B: g_main_context_iterate (gmain.c:3917) --- src/mm-broadband-modem-qmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index 30f3da88..5f89efba 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -1033,6 +1033,7 @@ dms_uim_get_pin_status_ready (QmiClientDms *client, } /* We're done! */ + qmi_message_dms_uim_get_pin_status_output_unref (output); g_task_return_int (task, lock); g_object_unref (task); }