Skip to content

mime: Fix g_option_context_get_help leak

Leak report

Direct leak of 2048 byte(s) in 1 object(s) allocated from:
    #0 0x64b9dee0922a in realloc.part.0 (/usr/asan/bin/xfce4-mime-helper+0x16e22a) (BuildId: 63b3d6562b8529d1)
    #1 0x74df5fb46c1a in g_realloc /usr/src/debug/glib2/build/../glib/glib/gmem.c:171:16
    #2 0x74df5fb6ce6a in g_string_expand /usr/src/debug/glib2/build/../glib/glib/gstring.c:82:17
    #3 0x74df5fb6cee1 in g_string_sized_new /usr/src/debug/glib2/build/../glib/glib/gstring.c:113:3
    #4 0x74df5fb510e6 in g_option_context_get_help /usr/src/debug/glib2/build/../glib/glib/goption.c:695:12
    #5 0x64b9dee679c1 in main xfce4-settings/dialogs/mime-settings/xfce-mime-helper-main.c:267:25
    #6 0x74df5f917e07 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #7 0x74df5f917ecb in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3
    #8 0x64b9ded1dfb4 in _start (/usr/asan/bin/xfce4-mime-helper+0x82fb4) (BuildId: 63b3d6562b8529d1)

Testing

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

Merge request reports

Loading