summaryrefslogtreecommitdiffstats
path: root/tests/valgrind
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-11-21 21:40:10 +0100
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-11-22 17:45:52 +0100
commit26d6b35a498843f66c66d1d1ed1a28189ef15dd2 (patch)
tree996ae582c1ce63a20f111da6f458a8cfd19d23ee /tests/valgrind
parent5192cdf7a000c1086869df43d8153d3e344a3b91 (diff)
downloadlasso-26d6b35a498843f66c66d1d1ed1a28189ef15dd2.tar.gz
lasso-26d6b35a498843f66c66d1d1ed1a28189ef15dd2.tar.xz
lasso-26d6b35a498843f66c66d1d1ed1a28189ef15dd2.zip
[leakcheck] fix leaks seen by the unit tests
This commit also improved valgrind suppression file to hide static allocations done by the GLib type system.
Diffstat (limited to 'tests/valgrind')
-rw-r--r--tests/valgrind/lasso.supp39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/valgrind/lasso.supp b/tests/valgrind/lasso.supp
index b4d22161..4e9a80e2 100644
--- a/tests/valgrind/lasso.supp
+++ b/tests/valgrind/lasso.supp
@@ -165,3 +165,42 @@
fun:g_hash_table_new
fun:g_quark_from_static_string
}
+{
+ g_type_init
+ Memcheck:Leak
+ fun:malloc
+ ...
+ fun:g_type_init
+}
+{
+ g_type_init
+ Memcheck:Leak
+ fun:calloc
+ ...
+ fun:g_type_init
+}
+{
+ g_type_init
+ Memcheck:Leak
+ fun:realloc
+ ...
+ fun:g_type_init
+}
+{
+ register type
+ Memcheck:Leak
+ fun:malloc
+ ...
+ fun:g_type_register_static
+ ...
+ fun:lasso_*get_type
+}
+{
+ register type
+ Memcheck:Leak
+ fun:realloc
+ ...
+ fun:g_type_register_static
+ ...
+ fun:lasso_*get_type
+}