updated lambda/return/return-from-home compiling code in the new compiler

This commit is contained in:
2021-01-21 14:59:01 +00:00
parent 16557a970c
commit 58165aad49
6 changed files with 180 additions and 188 deletions

View File

@ -2272,6 +2272,17 @@ static void fini_compiler (hcl_t* hcl)
hcl->c->tv.capa = 0;
}
if (hcl->c->tv2.s.ptr)
{
hcl_freemem (hcl, hcl->c->tv2.s.ptr);
hcl->c->tv2.s.ptr = HCL_NULL;
hcl->c->tv2.s.len = 0;
hcl->c->tv2.capa = 0;
hcl->c->tv2.wcount = 0;
}
HCL_ASSERT (hcl, hcl->c->tv2.capa == 0);
HCL_ASSERT (hcl, hcl->c->tv2.wcount == 0);
if (hcl->c->blk.info)
{
hcl_freemem (hcl, hcl->c->blk.info);