Skip to content

manager: Fix string leaks

correctmost requested to merge correctmost/xfce4-session:cm/fix-str-leaks into master

Leak report

2,204 bytes in 375 blocks are definitely lost in loss record 10,714 of 10,874
   at 0x48447A8: malloc (vg_replace_malloc.c:446)
   by 0x5750661: g_malloc (gmem.c:100)
   by 0x5769DD3: g_strdup (gstrfuncs.c:323)
   by 0x578B9E4: g_strdup_inline (gstrfuncs.h:321)
   by 0x578B9E4: g_variant_dup_string (gvariant.c:1547)
   by 0x578FCA7: g_variant_valist_get_nnp (gvariant.c:4974)
   by 0x578FCA7: g_variant_valist_get_leaf (gvariant.c:5144)
   by 0x578FCA7: g_variant_valist_get (gvariant.c:5325)
   by 0x5790006: g_variant_valist_get (gvariant.c:5360)
   by 0x5790B0F: g_variant_get_va (gvariant.c:5588)
   by 0x5790D87: g_variant_get (gvariant.c:5535)
   by 0x12E237: on_name_owner_notify (xfsm-manager.c:2182)
   by 0x5627D19: emit_signal_instance_in_idle_cb (gdbusconnection.c:4189)
   by 0x57463E6: g_idle_dispatch (gmain.c:6243)
   by 0x57477BB: g_main_dispatch (gmain.c:3357)
   by 0x574A190: g_main_context_dispatch_unlocked (gmain.c:4208)
   by 0x574A190: g_main_context_iterate_unlocked (gmain.c:4273)
   by 0x574AA42: g_main_loop_run (gmain.c:4475)
   by 0x4CB10A6: gtk_main (gtkmain.c:1329)
   by 0x1244EB: main (main.c:396)

Testing

  • No issues were detected with Valgrind when testing the patch

Merge request reports