]> ocean-lang.org Git - ocean/commit
oceani: fix a couple of issues
authorNeilBrown <neil@brown.name>
Tue, 12 Oct 2021 10:28:47 +0000 (21:28 +1100)
committerNeilBrown <neil@brown.name>
Tue, 12 Oct 2021 10:28:47 +0000 (21:28 +1100)
commitb5a63d46c787e442d44b5fd1d70d007498bd5058
tree91b924870f6197d325ab8f6d08d546e507529956
parent13482f902f9fa5d303a3a738a18fe17fdb734930
oceani: fix a couple of issues

1/ when a variable declared in a loop was re-initialized, we didn't free
   the old value before allocating a new one.
2/ When assigning to an out-of-bounds array index, created an rval,
   but never freed it.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc
csrc/oceani.mdc