summaryrefslogtreecommitdiff
path: root/lib/bio/mem.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-23 22:31:58 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-23 22:31:58 -0700
commita2f4956537807af8c698423f25b9b6de7ab66c1f (patch)
treece99187df681c01125562b02bdf655f8774abf73 /lib/bio/mem.myr
parentfeffe0d81fe8bc1d19f5f2305e09c08f70d4a620 (diff)
downloadmc-a2f4956537807af8c698423f25b9b6de7ab66c1f.tar.gz
Add back error signalling on close.
Diffstat (limited to 'lib/bio/mem.myr')
-rw-r--r--lib/bio/mem.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bio/mem.myr b/lib/bio/mem.myr
index bf89912..bebae73 100644
--- a/lib/bio/mem.myr
+++ b/lib/bio/mem.myr
@@ -22,7 +22,7 @@ const mkmem = {buf
.read = {buf; -> memread(mem, buf)},
.write = {buf; -> memwrite(mem, buf)},
.seek = {off; -> memseek(mem, off)},
- .close = {; std.free(mem)},
+ .close = {; std.free(mem); -> true},
])
}