glib.supp: Add suppression for the one-time allocation in g_get_tmp_dir()

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2023-01-24 11:20:35 +00:00
parent 41bd0fddcd
commit 90af624d5b

View File

@ -843,7 +843,7 @@
# _g_unset_cached_tmp_dir() deliberately leaks the previous cached g_get_tmp_dir() values.
# These will not all be reachable on exit.
{
g_get_tmp_dir
g_get_tmp_dir_test_init
Memcheck:Leak
match-leak-kinds:definite,reachable
fun:malloc
@ -853,6 +853,16 @@
fun:g_test_init
}
# g_get_tmp_dir() caches a one-time allocation
{
g_get_tmp_dir
Memcheck:Leak
match-leak-kinds:definite,reachable
fun:malloc
...
fun:g_get_tmp_dir
}
# g_get_system_data_dirs() caches a one-time allocation
{
g_get_system_data_dirs