From 89b0c1b304038409e192a28991a468036649f518 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 14 Nov 2023 11:01:04 +0000 Subject: [PATCH] glib.supp: Allow definite leaks of util dir paths These are one-time leaks, and happen if the util dir paths are built via these code paths, and then subsequently overwritten using `g_set_user_dirs()` (typically as part of a unit test). The additions to `glib.supp` correspond to the `g_ignore_leak()` calls in `gutils.c`. Unfortunately `g_ignore_leak()` only affects asan, not valgrind. See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294034 Signed-off-by: Philip Withnall --- tools/glib.supp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/glib.supp b/tools/glib.supp index aaf97dac0..cb379e2f5 100644 --- a/tools/glib.supp +++ b/tools/glib.supp @@ -867,7 +867,7 @@ { g_get_system_data_dirs Memcheck:Leak - match-leak-kinds:reachable + match-leak-kinds:definite,reachable fun:malloc ... fun:g_build_system_data_dirs @@ -878,7 +878,7 @@ { g_get_user_data_dir Memcheck:Leak - match-leak-kinds:reachable + match-leak-kinds:definite,reachable fun:realloc ... fun:g_build_user_data_dir @@ -889,7 +889,7 @@ { g_get_home_dir Memcheck:Leak - match-leak-kinds:reachable + match-leak-kinds:definite,reachable fun:malloc ... fun:g_build_home_dir