Skip to content

Fix leak in thunar_uca_provider_get_file_menu_items

correctmost requested to merge correctmost/thunar:cm/fix-uca-menu-leak into master

Leak report

Direct leak of 54 byte(s) in 1 object(s) allocated from:
    #0 0x5aa572af71e9 in malloc (/usr/local/bin/thunar+0x4571e9) (BuildId: 06b9a2d62ac0c5ef)
    #1 0x753570a5ce4a in g_malloc /usr/src/debug/glib2/build/../glib/glib/gmem.c:100:13
    #2 0x753570a74f54 in g_strconcat /usr/src/debug/glib2/build/../glib/glib/gstrfuncs.c:585:12
    #3 0x75356c99bd6a in thunar_uca_provider_get_file_menu_items plugins/thunar-uca/thunar-uca-provider.c:348:30
    #4 0x753571c649f8 in thunarx_menu_provider_get_file_menu_items thunarx/thunarx-menu-provider.c:125:15
    #5 0x75356c99c247 in thunar_uca_provider_get_folder_menu_items plugins/thunar-uca/thunar-uca-provider.c:393:11
    #6 0x753571c64fd6 in thunarx_menu_provider_get_folder_menu_items thunarx/thunarx-menu-provider.c:181:15
    #7 0x5aa572da9635 in thunar_window_location_toolbar_add_ucas thunar/thunar-window.c:6789:32
    #8 0x5aa572da9635 in thunar_window_location_toolbar_create thunar/thunar-window.c:6621:3
    #9 0x5aa572d992bb in thunar_window_init thunar/thunar-window.c:1044:3
    #10 0x7535715f2848 in g_type_create_instance /usr/src/debug/glib2/build/../glib/gobject/gtype.c:1951:5
    #11 0x7535715d7684 in g_object_new_internal /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2606:24
    #12 0x7535715d997a in g_object_new_internal /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2923:29
    #13 0x7535715d997a in g_object_new_valist /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2945:16
    #14 0x7535715d9d2f in g_object_new /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2418:12
    #15 0x5aa572b8d743 in thunar_application_open_window thunar/thunar-application.c:1473:12
    #16 0x5aa572b9c155 in thunar_application_process_files_finish thunar/thunar-application.c:1688:11
    #17 0x5aa572b9d027 in thunar_browser_poke_file thunar/thunar-browser.c:537:3
    #18 0x5aa572b8efd0 in thunar_application_process_filenames thunar/thunar-application.c:1864:7
    #19 0x5aa572b98f1c in thunar_application_command_line thunar/thunar-application.c:545:8
    #20 0x753570bb9373 in _g_cclosure_marshal_INT__OBJECTv /usr/src/debug/glib2/build/../glib/gio/gmarshal-internal.c:847:14
    #21 0x7535715e6b61 in _g_closure_invoke_va /usr/src/debug/glib2/build/../glib/gobject/gclosure.c:897:7
    #22 0x7535715e6b61 in signal_emit_valist_unlocked /usr/src/debug/glib2/build/../glib/gobject/gsignal.c:3424:8
    #23 0x7535715e6c71 in g_signal_emit_valist /usr/src/debug/glib2/build/../glib/gobject/gsignal.c:3263:7
    #24 0x7535715e6d33 in g_signal_emit /usr/src/debug/glib2/build/../glib/gobject/gsignal.c:3583:3
    #25 0x753570c22e9f in g_application_call_command_line /usr/src/debug/glib2/build/../glib/gio/gapplication.c:1103:7
    #26 0x753570c22e9f in g_application_call_command_line /usr/src/debug/glib2/build/../glib/gio/gapplication.c:1080:1
    #27 0x753570c26f29 in g_application_real_local_command_line /usr/src/debug/glib2/build/../glib/gio/gapplication.c:1179:7
    #28 0x753570c270a6 in g_application_run /usr/src/debug/glib2/build/../glib/gio/gapplication.c:2681:8
    #29 0x5aa572b67377 in main thunar/main.c:86:3
    #30 0x7535707eee07 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #31 0x7535707eeecb in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3

Testing

  • I didn't see any new memory errors or leaks with ASan + LSan when opening Thunar

Merge request reports