[glib: 1/4] glib.supp: Tweak reachable allocation suppressions



commit f18f7c9a21e30dd3d4df895e958ffbc0b35219d8
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Jun 17 11:26:13 2020 +0100

    glib.supp: Tweak reachable allocation suppressions
    
    Suppress the cached charset from `g_get_charset()`, and widen the
    suppression of the global random number `GRand` instance, since it can
    be used outside test cases.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Fixes: #2134

 glib.supp | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/glib.supp b/glib.supp
index 83c30f9b1..fc37de98f 100644
--- a/glib.supp
+++ b/glib.supp
@@ -218,7 +218,7 @@
 }
 
 {
-       g-test-rand-init2
+       g-rand-init2
        Memcheck:Leak
        match-leak-kinds:reachable
        fun:calloc
@@ -226,8 +226,6 @@
        fun:g_rand_new_with_seed_array
        ...
        fun:get_global_random
-       ...
-       fun:g_test_init
 }
 
 {
@@ -967,3 +965,13 @@
        ...
        fun:g_file_*
 }
+
+# Cached charset
+{
+       g_get_charset
+       Memcheck:Leak
+       match-leak-kinds:reachable
+       fun:malloc
+       ...
+       fun:g_get_charset
+}


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