Skip to content

Fix AtkRelationSet leaks in apr plug-in

correctmost requested to merge correctmost/thunar:cm/fix-apr-leaks into master

Example leak report

Direct leak of 448 byte(s) in 14 object(s) allocated from:
    #0 0x5885cff2ac59 in calloc (/usr/asan/bin/thunar+0x498c59)
    #1 0x7d636ca7cb62 in g_malloc0 /usr/src/debug/glib2/build/../glib/glib/gmem.c:133:13
    #2 0x7d636c9f87b5 in g_type_create_instance /usr/src/debug/glib2/build/../glib/gobject/gtype.c:1933:17
    #3 0x7d636c9dd684 in g_object_new_internal /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2606:24
    #4 0x7d636c9decfe in g_object_new_internal /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2603:6
    #5 0x7d636c9decfe in g_object_new_with_properties /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2769:14
    #6 0x7d636c9dfd51 in g_object_new /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2415:12
    #7 0x7d636e1e7f6c in atk_object_init /usr/src/debug/at-spi2-core/build/../at-spi2-core/atk/atkobject.c:659:30
    #8 0x7d636c9f880a in g_type_create_instance /usr/src/debug/glib2/build/../glib/gobject/gtype.c:1945:4
    #9 0x7d636c9dd684 in g_object_new_internal /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2606:24
    #10 0x7d636c9df97a in g_object_new_internal /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2923:29
    #11 0x7d636c9df97a in g_object_new_valist /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2945:16
    #12 0x7d636c9dfd2f in g_object_new /usr/src/debug/glib2/build/../glib/gobject/gobject.c:2418:12
    #13 0x7d636dc09e6a in gtk_widget_real_get_accessible gtk/gtkwidget.c:13566:24
    #14 0x7d636842d7fa in thunar_apr_image_page_init thunar/plugins/thunar-apr/thunar-apr-image-page.c:201:48
[...snip...]

Testing

  • No issues were detected with LSan, ASan, or Valgrind when testing the patch

Merge request reports