[libvirt PATCH 1/7] tests: valgrind.supp: suppress g_type_register_static leaks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <jtomko@xxxxxxxxxx>
---
 tests/.valgrind.supp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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
+    ...
+}
-- 
2.24.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux