I'm experiencing a memory leak when I use this function:
Object object(int, [module])
I use it within a loop and the module input is the baseline of the current working copy. The intent is to do a buffer comparison between the working copy and the baseline copy to flag a difference.
I have this call embedded in a function that I call within the loop. When I put a return statement prior to this call, everything works very fast. When I put a return statement directly after this call (to rule out the possibility of poor garbage collection on the Buffers), we noticed a significant performance degradation over the life of the loop.
Has anyone seen this? Does anyone know why this happens? I was not expecting a leak on this function.