Skip to content

Commit

Permalink
Suppress Regexps created in date__parse
Browse files Browse the repository at this point in the history
The date library lazily initializes Regexps using static local variables
through the function `regcomp`. The Regexp will end up being reported as
a memory leak.
  • Loading branch information
peterzhu2118 committed Aug 15, 2023
1 parent d0171ef commit 7dc2094
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions suppressions/ruby.supp
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@
fun:rb_callable_method_entry
...
}
{
The date library lazily initializes Regexps using static local variables through the function `regcomp`. The Regexp will end up being reported as a memory leak.
Memcheck:Leak
...
fun:rb_enc_reg_new
...
fun:date__parse
...
}

0 comments on commit 7dc2094

Please sign in to comment.