fix benchmark memleak in loop mode
Merge pull request #2169 from razzle/unstable

fix benchmark memleak in loop mode