Leak in test_cancellable_source_threaded_dispose()
# Start of cancellable-source tests
# /cancellable-source/threaded-dispose summary: Test a thread race between disposing of a GCancellableSource (in one thread) and cancelling the GCancellable it refers to (in another thread)
# Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841
ok 9 /cancellable-source/threaded-dispose
# End of cancellable-source tests
stderr:
==10415== Memcheck, a memory error detector
==10415== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==10415== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==10415== Command: /builds/GNOME/glib/_build/gio/tests/cancellable
==10415==
==10415==
==10415== HEAP SUMMARY:
==10415== in use at exit: 50,518 bytes in 330 blocks
==10415== total heap usage: 1,501,797 allocs, 1,501,467 frees, 89,947,791 bytes allocated
==10415==
==10415== 400 (240 direct, 160 indirect) bytes in 2 blocks are definitely lost in loss record 287 of 296
==10415== at 0x4845464: calloc (vg_replace_malloc.c:1328)
==10415== by 0x48BDBA5: g_malloc0 (gmem.c:163)
==10415== by 0x48B0FBD: g_source_new (gmain.c:1019)
==10415== by 0x4A7864C: g_cancellable_source_new (gcancellable.c:799)
==10415== by 0x402E09: test_cancellable_source_threaded_dispose (cancellable.c:302)
==10415== by 0x48E80D5: test_case_run (gtestutils.c:2934)
==10415== by 0x48E84DF: g_test_run_suite_internal (gtestutils.c:3024)
==10415== by 0x48E8647: g_test_run_suite_internal (gtestutils.c:3043)
==10415== by 0x48E88BD: g_test_run_suite (gtestutils.c:3123)
==10415== by 0x48E6F17: g_test_run (gtestutils.c:2235)
==10415== by 0x40404A: main (cancellable.c:746)
==10415==
==10415== LEAK SUMMARY:
==10415== definitely lost: 240 bytes in 2 blocks
==10415== indirectly lost: 160 bytes in 4 blocks
==10415== possibly lost: 0 bytes in 0 blocks
==10415== still reachable: 3,384 bytes in 53 blocks
==10415== suppressed: 44,206 bytes in 244 blocks
==10415== Reachable blocks (those to which a pointer was found) are not shown.
==10415== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==10415==
==10415== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)
Full log: testlog-valgrind.txt