From b4de2e32975ec2d63ebae20a29d3acc126fdabd2 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 13 Dec 2018 14:06:57 +0000 Subject: [PATCH] glib.supp: Add various one-time allocations to the suppression file Signed-off-by: Philip Withnall --- glib.supp | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/glib.supp b/glib.supp index 3ff1fdbc0..c8b184e5c 100644 --- a/glib.supp +++ b/glib.supp @@ -229,13 +229,21 @@ } { - g-get-language-names + g-get-language-names-malloc Memcheck:Leak fun:malloc ... fun:g_get_language_names } +{ + g-get-language-names-calloc + Memcheck:Leak + fun:calloc + ... + fun:g_get_language_names +} + { g-static-mutex Memcheck:Leak @@ -582,4 +590,70 @@ ... fun:g_build_user_data_dir fun:g_get_user_data_dir +} + +# gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs. +{ + desktop_file_dirs_malloc + Memcheck:Leak + fun:malloc + ... + fun:desktop_file_dirs_lock +} + +# gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs. +{ + desktop_file_dirs_realloc + Memcheck:Leak + fun:realloc + ... + fun:desktop_file_dirs_lock +} + +# gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs. +{ + desktop_file_dir_unindexed_setup_search + Memcheck:Leak + fun:malloc + ... + fun:desktop_file_dir_unindexed_setup_search + fun:desktop_file_dir_unindexed_setup_search +} + +# g_io_extension_point_register() caches a one-time allocation global table of @extension_points. +{ + g_io_extension_point_register + Memcheck:Leak + fun:calloc + ... + fun:g_io_extension_point_register +} + +# g_strerror() caches a one-time allocation global table of @errors. +{ + g_strerror + Memcheck:Leak + fun:malloc + ... + fun:g_locale_to_utf8 + fun:g_strerror +} + +# g_socket_connection_factory_register_type() caches a one-time allocation global table of @connection_types. +{ + g_socket_connection_factory_register_type + Memcheck:Leak + fun:calloc + ... + fun:g_socket_connection_factory_register_type +} + +# g_dbus_error_quark() never unregisters itself as a GDBusError domain, as it’s always available +{ + g_dbus_error_quark + Memcheck:Leak + fun:calloc + ... + fun:g_dbus_error_register_error_domain + fun:g_dbus_error_quark } \ No newline at end of file