From: Ján Tomko Date: Fri, 21 Feb 2020 23:48:27 +0000 (+0100) Subject: tests: valgrind.supp: suppress g_type_register_static leaks X-Git-Tag: v6.2.0-rc1~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb6ea86f6ff175901d5e2b3531bce295e112564f;p=thirdparty%2Flibvirt.git tests: valgrind.supp: suppress g_type_register_static leaks When a type is registered, it holds allocated memory until the program exits. Add an exception to valgrind.supp to make the output of make -C tests valgrind more readable. Signed-off-by: Ján Tomko Reviewed-by: Michal Privoznik --- diff --git a/tests/.valgrind.supp b/tests/.valgrind.supp index 6fb724ff13..f78b3b1f72 100644 --- a/tests/.valgrind.supp +++ b/tests/.valgrind.supp @@ -148,3 +148,16 @@ fun:virObjectUnref fun:main } +# +# types registered with GLib are never freed +# +{ + glibTypeRegisterLeak + Memcheck:Leak + match-leak-kinds: possible + ... + fun:g_realloc + obj:*/lib*/libgobject* + fun:g_type_register_static + ... +}