From: NeilBrown Date: Sat, 6 Nov 2021 02:04:54 +0000 (+1100) Subject: oceani: move var_block_close() calls to the code sections that close the block X-Git-Url: https://ocean-lang.org/code/?a=commitdiff_plain;h=875d537b75aadc54c94d41585248d0377c6816cc;hp=875d537b75aadc54c94d41585248d0377c6816cc;p=ocean oceani: move var_block_close() calls to the code sections that close the block Rather than calling var_block_close() from common non-terminals, move the calls into the body of the parent non-terminal. This places them after the 'struct exec' which represents the scope has been created. This is needed to attach the variables to the point where their scope is closed, so they can be freed. This change helped me focus on some untested - and broken - code. Signed-off-by: NeilBrown ---