From dc55e4fe11eb66df88faa810e69c21ff2a197f70 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Jan 2024 19:06:56 +0100 Subject: [PATCH] Suppress ASAN report about memory leaks in g_quark_init() This is a one off allocation which won't be fixed by glib maintainers (see https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2135 and https://discourse.gnome.org/t/feature-request-enable-compilation-without-memory-leaks/6960 etc). --- misc/suppressions/lsan | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/suppressions/lsan b/misc/suppressions/lsan index daea70f4ef..aa98926f92 100644 --- a/misc/suppressions/lsan +++ b/misc/suppressions/lsan @@ -48,3 +48,9 @@ leak:_gtk_css_image_draw # a one off allocation not freed and not an unbounded leak). leak:cups_request_printer_list_cb leak:cups_dispatch_watch_dispatch + +# Avoid leak reports for glib one off allocations (see also glib own Valgrind +# suppressions file glib.supp, found under /usr/share/glib-2.0/valgrind on +# Linux systems). +leak:g_malloc +leak:g_quark_init