From da44b78bef973d1a275a4878f230d993b15e6dc3 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 27 Jun 2018 10:01:40 +0100 Subject: [PATCH] valgrind: Add more suppressions to glib.supp These were spotted by running the entire test suite under valgrind, thanks to the magic of Meson: see the build rules in valgrind-x86_64 in .gitlab-ci.yml. Signed-off-by: Philip Withnall --- glib.supp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/glib.supp b/glib.supp index 7a3fe6bc3..f64826b3c 100644 --- a/glib.supp +++ b/glib.supp @@ -51,6 +51,16 @@ fun:initialize_module_inlock_reentrant } +# One-time allocation from libc for getpwnam() results +{ + g-local-vfs-getpwnam + Memcheck:Leak + fun:malloc + ... + fun:getpwnam + fun:g_local_vfs_parse_name +} + { gobject-init-malloc Memcheck:Leak @@ -232,6 +242,18 @@ fun:_g_io_module_get_default } +# One-time getaddrinfo() configuration loading +{ + g-threaded-resolver-getaddrinfo-config + Memcheck:Leak + fun:malloc + ... + fun:__resolv_conf_allocate + ... + fun:getaddrinfo + fun:do_lookup_by_name +} + # memcheck checks that the third argument to ioctl() is a valid pointer, but # some ioctls use that argument as an integer {