Skip to content

Fix leak in thunar_application_accel_map_init

correctmost requested to merge correctmost/thunar:cm/fix-accel-map-leak into master

Leak report

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x59d00ebe8aa9 in malloc (/usr/local/bin/thunar+0x457aa9) (BuildId: 7527e34e3d860c35)
    #1 0x7e0d32adce4a in g_malloc /usr/src/debug/glib2/build/../glib/glib/gmem.c:100:13
    #2 0x7e0d32ad198b in g_list_prepend /usr/src/debug/glib2/build/../glib/glib/glist.c:253:14
    #3 0x59d00ec7e52b in thunar_application_get_windows thunar/thunar/thunar-application.c:1349:24
    #4 0x59d00ec8bf79 in thunar_application_accel_map_init thunar/thunar/thunar-application.c:789:13
    #5 0x7e0d33834abf in gdk_threads_dispatch /usr/src/debug/gtk3/build/../gtk/gdk/gdk.c:769:11
    #6 0x7e0d32ad7298 in g_main_dispatch /usr/src/debug/glib2/build/../glib/glib/gmain.c:3344:28
    #7 0x7e0d32b39ec6 in g_main_context_dispatch_unlocked /usr/src/debug/glib2/build/../glib/glib/gmain.c:4152:7
    #8 0x7e0d32b39ec6 in g_main_context_iterate_unlocked.isra.0 /usr/src/debug/glib2/build/../glib/glib/gmain.c:4217:5
    #9 0x7e0d32ad6794 in g_main_context_iteration /usr/src/debug/glib2/build/../glib/glib/gmain.c:4282:12
    #10 0x7e0d32ca7195 in g_application_run /usr/src/debug/glib2/build/../glib/gio/gapplication.c:2712:7
    #11 0x59d00ec58c37 in main thunar/thunar/main.c:86:3
    #12 0x7e0d3280fe07 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #13 0x7e0d3280fecb in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3
    #14 0x59d00eafc9c4 in _start (/usr/local/bin/thunar+0x36b9c4) (BuildId: 7527e34e3d860c35)

Testing

  • I didn't see any new LSan or ASan errors after applying the patch

Merge request reports