summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-10-13 08:54:52 -0700
committerOri Bernstein <ori@eigenstate.org>2017-10-13 08:54:52 -0700
commitfc186cb5dc36f2253453904d308cb0040f3e6c0c (patch)
tree9dcf69ebdf2c7e0e983c56f28644ebadefdbc86c
parentf7fc1cd4e2b36f2ae8d124c4654eac7f48aadff8 (diff)
downloadmc-fc186cb5dc36f2253453904d308cb0040f3e6c0c.tar.gz
We need to free the loopck on err.
-rw-r--r--lib/fileutil/walk.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fileutil/walk.myr b/lib/fileutil/walk.myr
index 6af2af6..dbdfb5f 100644
--- a/lib/fileutil/walk.myr
+++ b/lib/fileutil/walk.myr
@@ -24,7 +24,8 @@ const bywalk = {p
| `std.Err e:
-> [
.dirstk = [][:],
- .curdir = [][:]
+ .curdir = [][:],
+ .loopck = mkloopcheck(p),
]
;;
}