Skip to content

Fix GFileInputStream leaks in file_input_stream_ready_cb

correctmost requested to merge correctmost/xfdesktop:cm/fix-stream-leaks into master

Leak report

Direct leak of 96 byte(s) in 1 object(s) allocated from:
    #0 0x7656752fd1aa in calloc /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_malloc_linux.cpp:77
    #1 0x7656738b9561 in g_malloc0 glib/gmem.c:133
    #2 0x7656731eb720 in g_type_create_instance gobject/gtype.c:1933
    #3 0x765673181fc7 in g_object_new_internal gobject/gobject.c:2606
    #4 0x765673186e2d in g_object_new_with_properties gobject/gobject.c:2769
    #5 0x765673189189 in g_object_new gobject/gobject.c:2415
    #6 0x765674981693 in _g_local_file_input_stream_new gio/glocalfileinputstream.c:132
    #7 0x76567496cfc1 in g_local_file_read gio/glocalfile.c:1395
    #8 0x76567467451b in g_file_read gio/gfile.c:1722
    #9 0x7656746746e8 in open_read_async_thread gio/gfile.c:6275
    #10 0x76567478775e in g_task_thread_pool_thread gio/gtask.c:1583
    #11 0x76567394c8d1 in g_thread_pool_thread_proxy glib/gthreadpool.c:336
    #12 0x76567394ba17 in g_thread_proxy glib/gthread.c:892
    #13 0x76567525d109 in asan_thread_start /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_interceptors.cpp:234
    #14 0x7656700a339c  (/usr/lib/libc.so.6+0x9439c)

Testing

  • No issues were detected when testing the patch with UBSan, LSan, and ASan

Merge request reports

Loading