Skip to content

systray: Fix leak in sn_plugin_init

correctmost requested to merge correctmost/xfce4-panel:cm/fix-init-leak into master

Description

The same assignment is performed in sn_plugin_construct on line 328.

Leak report

192 (96 direct, 96 indirect) bytes in 1 blocks are definitely lost in loss record 6,470 of 6,922
   at 0x48447A8: malloc (vg_replace_malloc.c:446)
   by 0x5441661: g_malloc (gmem.c:100)
   by 0x54597DB: g_slice_alloc (gslice.c:193)
   by 0x54284EF: g_hash_table_new_full (ghash.c:1021)
   by 0x70DB0A7: sn_plugin_init (sn-plugin.c:96)
   by 0x53BC768: g_type_create_instance (gtype.c:1951)
   by 0x539EABA: g_object_constructor (gobject.c:2981)
   by 0x486345C: xfce_panel_plugin_constructor (xfce-panel-plugin.c:793)
[...snip...]

Testing

  • No issues were detected when testing the patch with Valgrind

Merge request reports

Loading