Skip to content

exo-open: Fix GError leak

correctmost requested to merge correctmost/exo:cm/fix-exo-open-leak into master

Leak report

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x5f95baab2a19 in malloc (/usr/local/bin/exo-open+0x15ea19) (BuildId: 5ea97daf9b4fdda4)
    #1 0x727a43945e4a in g_malloc /usr/src/debug/glib2/build/../glib/glib/gmem.c:100:13
    #2 0x727a4395bf85 in g_slice_alloc0 /usr/src/debug/glib2/build/../glib/glib/gslice.c:217:18
    #3 0x727a43927024 in g_error_allocate /usr/src/debug/glib2/build/../glib/glib/gerror.c:235:17
    #4 0x727a4392734c in g_error_new_steal /usr/src/debug/glib2/build/../glib/glib/gerror.c:249:19
    #5 0x727a4392734c in g_error_new_literal /usr/src/debug/glib2/build/../glib/glib/gerror.c:347:10
    #6 0x727a4392742c in g_set_error_literal /usr/src/debug/glib2/build/../glib/glib/gerror.c:527:12
    #7 0x727a4392742c in g_set_error_literal /usr/src/debug/glib2/build/../glib/glib/gerror.c:518:1
    #8 0x727a43a81168 in g_file_query_info /usr/src/debug/glib2/build/../glib/gio/gfile.c:1341:7
    #9 0x727a43a92195 in g_file_query_default_handler /usr/src/debug/glib2/build/../glib/gio/gfile.c:7687:10
    #10 0x727a43a6cfcb in g_app_info_launch_default_for_uri /usr/src/debug/glib2/build/../glib/gio/gappinfo.c:1009:18
    #11 0x727a43e8f21e in gtk_show_uri_on_window /usr/src/debug/gtk3/build/../gtk/gtk/gtkshow.c:159:9
    #12 0x5f95baaff0ce in exo_open_uri exo-open/main.c:590:18
    #13 0x5f95baafd4db in main exo-open/main.c:729:21
    #14 0x727a4359be07 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #15 0x727a4359becb in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3
    #16 0x5f95ba9c6934 in _start (/usr/local/bin/exo-open+0x72934) (BuildId: 5ea97daf9b4fdda4)

Steps to reproduce

  1. exo-open "file://foo"

Merge request reports

Loading