Subj : Atom leaks in 1.5 rc5? To : netscape.public.mozilla.jseng From : "Anthony Moquin" Date : Mon May 19 2003 01:29 pm Hi, The following code appears to leak 1 atom using js-1.5-rc5: function f() { function g() {} } for(var p in {}) {} I'm running this script using the JSShell, built with VC7.1, and I get the following message on shutdown: JS engine warning: 1 atoms remain after destroying the JSRuntime. These atoms may point to freed memory. Things reachable through them have not been finalized. The leak appears only when a for..in block is executed in the presence of an inner function declaration. Removing function g() fixes the problem, so I assume that it's the inner function declaration which is leaking. Unfortunately, we're using LOTS of inner functions in our code, and this leak is becoming quite an annoyance. I couldn't find this issue in bugzilla... Any ideas? Thanks in advance! -Anthony .