lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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