Skip to content

Commit

Permalink
Suppress LeakSanitizer in glibc DNS resolver (awslabs#301)
Browse files Browse the repository at this point in the history
The allocation in `__res_context_send` is owned by glibc, which is
supposed to clean it up at shutdown, but that seems to break
occasionally. It's outside our control and a bounded allocation (once
per process), so let's just ignore it.

Signed-off-by: James Bornholt <[email protected]>
  • Loading branch information
jamesbornholt authored Jun 19, 2023
1 parent 5d6fa05 commit 824fd66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lsan-suppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
leak:aws_tls_init_static_state

# libfuse is outside our control
leak:fuse_opt_add_arg
leak:fuse_opt_add_arg

# glibc's DNS resolver is outside our control
leak:__res_context_send

0 comments on commit 824fd66

Please sign in to comment.