hare

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

commit 1f52a36d631371afa3c5abd3031611d0a7425e02
parent 2efca14b04b6f1a30837776ea9d1889f260ed4d0
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 11 May 2023 22:01:40 -0400

fs: fix memory leak

Diffstat:
Mfs/util.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/fs/util.ha b/fs/util.ha @@ -117,6 +117,7 @@ export fn rmdirall(fs: *fs, path: str) (void | error) = { fn rmdirall_path(fs: *fs, buf: *path::buffer) (void | error) = { let it = iter(fs, path::string(buf))?; + defer finish(it); for (true) { match (next(it)) { case let ent: dirent =>