Skip to content

Commit

Permalink
Suppress reporting memory leaks originating from libdevstat
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
Ximalas authored and BenBE committed Oct 14, 2021
1 parent 0a5890d commit 4cf74de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/htop_suppressions.valgrind
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,13 @@
fun:CRT_setColors
fun:CRT_init
}

{
<devstat internal memory>
Memcheck:Leak
match-leak-kinds: possible,reachable
...
obj:*/libdevstat*
...
fun:Platform_getDiskIO
}

0 comments on commit 4cf74de

Please sign in to comment.