v0.10.4
Here\'s the simple loop that results in an ever-increasing memory usage:
function redx(){ setTimeout(function(){ redx() },1000); cons
No idea why but apparently if you reference the timeout object in the scope of the function nodejs will do the garbage collect that correctly.
function redx(){ var t = setTimeout(function(){ redx() },50); console.log('hi'); } redx();