From 4cf74de1f1a73e1079808fe06a6730db27e82a9f Mon Sep 17 00:00:00 2001 From: Ximalas Date: Tue, 12 Oct 2021 10:44:24 +0200 Subject: Suppress reporting memory leaks originating from libdevstat Based on https://cgit.freebsd.org/src/tree/lib/libdevstat/devstat.c the following four functions call memory allocation functions: - devstat_getdevs() - devstat_selectdevs() - devstat_buildmatch() - get_devstat_kvm() --- scripts/htop_suppressions.valgrind | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/htop_suppressions.valgrind b/scripts/htop_suppressions.valgrind index 3e5c9f1c..0ba4539b 100644 --- a/scripts/htop_suppressions.valgrind +++ b/scripts/htop_suppressions.valgrind @@ -45,3 +45,13 @@ fun:CRT_setColors fun:CRT_init } + +{ + + Memcheck:Leak + match-leak-kinds: possible,reachable + ... + obj:*/libdevstat* + ... + fun:Platform_getDiskIO +} -- cgit v1.2.3