[gnumeric] gnmvalgrind: neuter Python's bogus malloc.



commit 3337aa41e7c30c7f750607420b3d031476296497
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 21 16:53:11 2021 -0400

    gnmvalgrind: neuter Python's bogus malloc.
    
    We don't want warnings associated with the python malloc (which doesn't
    believe in the C standard and likes to read random memory).

 tools/gnmvalgrind | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tools/gnmvalgrind b/tools/gnmvalgrind
index fb2027f11..0e493a88e 100755
--- a/tools/gnmvalgrind
+++ b/tools/gnmvalgrind
@@ -37,6 +37,8 @@ if ($seen_leak_check) {
     &add_debug_flag ('GNM_DEBUG', 'close-displays');
 }
 
+$ENV{'PYTHONMALLOC'} = 'malloc';
+
 push @cmd, 'valgrind';
 push @cmd, '--num-callers=40' unless $seen_num_callers;
 push @cmd, "--suppressions=$topsrc/test/common.supp";


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