hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit ed24768e26175995613648040f6a2a5f140f7e12
parent bcf72531db6515e0b430d4697901c0c9103ff052
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Feb 2021 13:37:04 -0500

main.ha: free imports

Diffstat:
Mmain.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/main.ha b/main.ha @@ -25,6 +25,9 @@ export fn main() void = { err: parse::error => fmt::fatal("{}", parse::errstr(err)), i: []ast::import => i, }; + defer for (let i = 0z; i < len(imports); i += 1) { + ast::import_free(imports[i]); + }; fmt::errorln("{} has {} imports:", in.1, len(imports)); for (let i = 0z; i < len(imports); i += 1) {