From 56b99116f2082df6c9927f49b660295c69f1c7f8 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 14 Apr 2021 10:56:34 -0400 Subject: [PATCH] tools: Add some more data to ignore for valgrind When running valgrind there are some possible memory leaks. These memory leaks we have absolutely no control over, mark them as not worthy of being reported. Finally move the valgrind suppressions file from bgpd/ to tools/ this is because this suppressions file can be used beyond bgpd Signed-off-by: Donald Sharp --- {bgpd => tools}/valgrind.supp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) rename {bgpd => tools}/valgrind.supp (58%) diff --git a/bgpd/valgrind.supp b/tools/valgrind.supp similarity index 58% rename from bgpd/valgrind.supp rename to tools/valgrind.supp index 31f2477a58..fbfb640b2a 100644 --- a/bgpd/valgrind.supp +++ b/tools/valgrind.supp @@ -16,3 +16,17 @@ obj:/usr/lib/x86_64-linux-gnu/libyang.so.1.9.2 fun:ly_load_plugins } +{ + + Memcheck:Leak + fun:calloc + fun:cap_init + fun:zprivs_caps_init +} +{ + + Memcheck:Leak + fun:malloc + ... + fun:sqlite3_step +} -- 2.39.5