Subj : Re: memory leak To : lyg From : Brendan Eich Date : Thu Mar 18 2004 12:17 am lyg wrote: > in my app, memory leak often happened in > static Bigint *Balloc(int32 k) in jsdtoa.c > > It seems that the malloced memery is not freed, is this a bug or because I > don't Call api to free it ? i suppose the problem is concerned with "static > Bigint *freelist[Kmax+1]" in jsdtoa.c;" That's cleaned up by js_FinishDtoa, called by JS_ShutDown. You are calling JS_ShutDown after all other API calls, when shutting down the engine, aren't you? You should be. /be .