[Date Prev][Date Next][Thread Prev][Thread Next]
- 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;
> 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.