in reply to Re^3: Regex replace leaking memory.
in thread Regex replace leaking memory.

I should also note that in all my cases I have been using Devel::Leak from CPAN.

If I use the libdevel-leak-perl package with the system perl under Ubuntu 18, then I can reproduce the problem.