lua-users home
lua-l archive

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


Good morning!

> Am 26.02.2022 um 18:33 schrieb Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
> 
>> The problem seems to be the call to luaM_freearray(L,f->lineinfo,f->sizelineinfo); on line 158 of luac.c.
> 
> I'm sorry about that. This issue has appeared before and I've failed
> to address it properly:
> http://lua-users.org/lists/lua-l/2021-09/msg00091.html
> http://lua-users.org/lists/lua-l/2017-05/msg00143.html
> 
> Could you please try this patch? Thanks.
> 
> luaM_freearray(L, f->lineinfo, f->sizelineinfo);
> f->lineinfo = NULL;                             /* add this line */
> f->sizelineinfo = 0;

Yes, this does the trick.  It works.