That might be another issue.
Could you post the undefined variables so that we could try to reproduce it?
I just used some dummy setups and saw an increase in memory usage, which was then cleared after a few iterations.