Skip to content

mime: Fix string leak

correctmost requested to merge correctmost/xfce4-settings:cm/fix-str-leak into master

Leak report

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x5a58c47b9829 in malloc (/usr/asan/bin/xfce4-mime-helper+0x16d829)
    #1 0x71460a5d5062 in g_malloc glib/gmem.c:100:13
    #2 0x71460a6118d2 in g_strdup glib/gstrfuncs.c:323:17
    #3 0x5a58c480e155 in g_strdup_inline /usr/include/glib-2.0/glib/gstrfuncs.h:321:10
    #4 0x5a58c480e155 in main dialogs/mime-settings/xfce-mime-helper-main.c:120:16

Steps to reproduce

  1. DESKTOP_STARTUP_ID="foo" /usr/local/bin/xfce4-mime-helper

Testing

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

Merge request reports

Loading