commit fb22df0ab54949f53114cf3d34a92945f5acee82
parent f1bf60f7185f2ed41f88454d5ace8d0ffb80b934
Author: Lou Woell <lou.woell@posteo.de>
Date:   Tue,  9 Sep 2025 10:54:37 +0200

Clean up some imports, fix a leak

Diffstat:
Mcmd/harehelper/helper.ha | 3---
Mcmd/harehelper/list_modules.ha | 2++
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/cmd/harehelper/helper.ha b/cmd/harehelper/helper.ha @@ -1,11 +1,8 @@ -use bufio; use dirs; use fmt; use getopt; use hare::module; -use io; use os; -use path; use strings; def HAREPATH = "/usr/src/hare/stdlib/:/usr/src/hare/third-party:."; diff --git a/cmd/harehelper/list_modules.ha b/cmd/harehelper/list_modules.ha @@ -9,6 +9,8 @@ fn get_modules (ctx: *module::context) []module::module = { let res: []module::module = []; const harepath = strings::split(ctx.harepath, ":")!; + defer free(harepath); + let mod = path::init()!; for (let p .. harepath) {