summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-12-17 13:09:50 +0100
committerDavid Lamparter <equinox@diac24.net>2020-04-01 06:53:26 +0200
commit149e0bafd69d05f89b7f101ea83f8fabd87b769a (patch)
tree7b4a66c09d4bb4099ae286183f66363f2efa1241
parentlib: mark some allocations as "active at exit" (diff)
downloadfrr-149e0bafd69d05f89b7f101ea83f8fabd87b769a.tar.xz
frr-149e0bafd69d05f89b7f101ea83f8fabd87b769a.zip
lib/log: add valgrind suppression for zlog
These bits of memory are intentionally kept alive at exit so logging still works. Signed-off-by: David Lamparter <equinox@diac24.net>
-rw-r--r--bgpd/valgrind.supp8
1 files changed, 8 insertions, 0 deletions
diff --git a/bgpd/valgrind.supp b/bgpd/valgrind.supp
index 7a25c8836..ed236a6dc 100644
--- a/bgpd/valgrind.supp
+++ b/bgpd/valgrind.supp
@@ -7,3 +7,11 @@
fun:ly_load_plugins_dir
fun:ly_load_plugins
}
+{
+ <zlog_keep_working_at_exit>
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:calloc
+ fun:qcalloc
+ fun:zlog_target_clone
+}