Skip to content

lock-plug: Fix GVariant leak

Leak report

139 (64 direct, 75 indirect) bytes in 1 blocks are definitely lost in loss record 10,968 of 12,421
   at 0x48447A8: malloc (vg_replace_malloc.c:446)
   by 0x5364661: g_malloc (gmem.c:100)
   by 0x537C7DB: g_slice_alloc (gslice.c:193)
   by 0x53A5FA3: g_variant_alloc (gvariant-core.c:560)
   by 0x53A6174: g_variant_new_from_bytes (gvariant-core.c:603)
   by 0x539E215: g_variant_new_from_trusted (gvariant.c:328)
   by 0x539E6E4: g_variant_new_object_path (gvariant.c:1370)
   by 0x5206048: parse_value_from_blob (gdbusmessage.c:1857)
   by 0x5206662: parse_value_from_blob (gdbusmessage.c:2109)
   by 0x5207D0D: g_dbus_message_new_from_blob (gdbusmessage.c:2497)
   by 0x521291A: _g_dbus_worker_do_read_cb (gdbusprivate.c:752)
   by 0x51A705A: g_task_return_now (gtask.c:1361)
   by 0x51A7090: complete_in_idle_cb (gtask.c:1375)
   by 0x535A3E6: g_idle_dispatch (gmain.c:6243)
   by 0x535B7BB: g_main_dispatch (gmain.c:3357)
   by 0x535E190: g_main_context_dispatch_unlocked (gmain.c:4208)
   by 0x535E190: g_main_context_iterate_unlocked (gmain.c:4273)
   by 0x535EA42: g_main_loop_run (gmain.c:4475)
   by 0x521070A: gdbus_shared_thread_func (gdbusprivate.c:284)
   by 0x5389D57: g_thread_proxy (gthread.c:892)
   by 0x5E7C39C: start_thread (pthread_create.c:447)
   by 0x5F012A3: clone (clone.S:100)

Testing

  • No issues were detected when testing the patch with Valgrind

Merge request reports

Loading