diff --git a/tools/glib.supp b/tools/glib.supp index 941d64bc9..9ff78cc15 100644 --- a/tools/glib.supp +++ b/tools/glib.supp @@ -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