Skip to content

file: Fix GError leak in mousepad_file_autosave_delete_finish

Leak report

104 (16 direct, 88 indirect) bytes in 1 blocks are definitely lost in loss record 11,372 of 13,347
   at 0x48457A8: malloc (vg_replace_malloc.c:446)
   by 0x5963D92: g_malloc (glib/gmem.c:100)
   by 0x597D7AD: g_slice_alloc (glib/gslice.c:193)
   by 0x597D7AD: g_slice_alloc0 (???:217)
   by 0x5943455: g_error_allocate (glib/gerror.c:235)
   by 0x5943455: g_error_new_steal (???:249)
   by 0x59439F8: g_error_new_valist (glib/gerror.c:292)
   by 0x59439F8: g_set_error (???:490)
   by 0x4AFE08E: g_set_io_error (gio/glocalfile.c:946)
   by 0x4AFE08E: g_local_file_delete (???:1527)
   by 0x4A21EFF: delete_async_thread (gio/gfile.c:6501)
   by 0x4A724CF: g_task_thread_pool_thread (gio/gtask.c:1585)
   by 0x598DD4C: g_thread_pool_thread_proxy (glib/gthreadpool.c:336)
   by 0x598C0B0: g_thread_proxy (glib/gthread.c:890)
   by 0x4BBB709: start_thread (pthread_create.c:448)
   by 0x4C3F8B3: clone (clone.S:100)

Testing

  • No issues were detected when testing the patch with Valgrind

Merge request reports

Loading