[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug in Lua 5.0.2
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 04 Jan 2005 10:00:04 -0200
> I've got a patch that appears to have fixed the bug;
Well done!
> My two worries with this patch are memory leaks and infinite loops.
No worries about that. An upvalue never refers directly to another
upvalue (only closures can point to upvalues), so no infinite loops.
And as far as the closure is garbage, it does not traverse its upvalues
anymore, so no memory leaks.
-- Roberto