Historically, eval has tended to leak if it traps an error during compilation (errors during execution should be ok).
The range of things that leak have been whittled down over the years, and 5.18.0 includes an OP arena facility that should should have removed most, if not all, of the remaining leaks.
Dave.