From 8121c9883477cf4350e8dd8abdc3776548c11ea3 Mon Sep 17 00:00:00 2001 From: Erik Hennig Date: Sun, 23 Jun 2024 19:21:16 +0200 Subject: [PATCH] Add suppression comments + Suppress lazy_static (#32584) Co-authored-by: Jonas Zeunert --- support/suppressed_leaks_for_asan.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/support/suppressed_leaks_for_asan.txt b/support/suppressed_leaks_for_asan.txt index 7d618bef589..d2b246866e6 100644 --- a/support/suppressed_leaks_for_asan.txt +++ b/support/suppressed_leaks_for_asan.txt @@ -1 +1,5 @@ -leak:style::sharing::SHARING_CACHE_KEY::__init \ No newline at end of file +# intentional Box::leak, introduced here: https://github.com/servo/stylo/blob/f4cde5d89d03db92d111eaa4b4b34e622b6eecac/style/sharing/mod.rs#L481 +leak:style::sharing::SHARING_CACHE_KEY::__init + +# lazy_static never frees memory because it never runs destructors, see https://docs.rs/lazy_static/1.4.0/lazy_static/index.html#semantics +leak:lazy_static::lazy::Lazy*::get \ No newline at end of file