Skip to content

Fix leak with notify_get_server_caps

Leak report

102 bytes in 8 blocks are definitely lost in loss record 7,299 of 8,655
   at 0x48447A8: malloc (vg_replace_malloc.c:446)
   by 0x5441661: g_malloc (gmem.c:100)
   by 0x545ADD3: g_strdup (gstrfuncs.c:323)
   by 0x547C9E4: g_strdup_inline (gstrfuncs.h:321)
   by 0x547C9E4: g_variant_dup_string (gvariant.c:1547)
   by 0x547CA57: g_variant_dup_strv (gvariant.c:1673)
   by 0x5480D2F: g_variant_valist_get_nnp (gvariant.c:4989)
   by 0x5480D2F: g_variant_valist_get_leaf (gvariant.c:5144)
   by 0x5480D2F: g_variant_valist_get (gvariant.c:5325)
   by 0x5481006: g_variant_valist_get (gvariant.c:5360)
   by 0x5481B0F: g_variant_get_va (gvariant.c:5588)
   by 0x5481D87: g_variant_get (gvariant.c:5535)
   by 0x714FDB2: notify_get_server_caps (notify.c:634)
   by 0x70D6BC5: pulseaudio_notify_init (pulseaudio-notify.c:130)
[...snip...]

Testing

  • No issues were detected when testing the patch with Valgrind

Merge request reports