Skip to content

tests: Fix xfconf_channel_get_string leak

Leak report

Direct leak of 11 byte(s) in 1 object(s) allocated from:
    #0 0x5d1702195d69 in malloc (xfconf/tests/get-properties/.libs/t-get-string+0x159d69)
    #1 0x7d1ed3aebe4a in g_malloc /usr/src/debug/glib2/build/../glib/glib/gmem.c:100:13
    #2 0x7d1ed3b0225a in g_strdup /usr/src/debug/glib2/build/../glib/glib/gstrfuncs.c:323:17
    #3 0x7d1ed3e629cd in xfconf_channel_get_string xfconf/xfconf/xfconf-channel.c:794:21
    #4 0x5d17021de9a6 in main xfconf/tests/get-properties/t-get-string.c:38:5
    #5 0x7d1ed378ce07 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #6 0x7d1ed378cecb in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3
    #7 0x5d17020a9c84 in _start (xfconf/tests/get-properties/.libs/t-get-string+0x6dc84)

Testing

  • make check now passes with ASan + LSan

Merge request reports