summaryrefslogtreecommitdiff
path: root/lib/std/slurp.myr
diff options
context:
space:
mode:
authorandrewc <andrew_chambers@trimble.com>2016-02-03 13:29:13 +1300
committerandrewc <andrew_chambers@trimble.com>2016-02-03 13:29:13 +1300
commitc3a4e93229ca543d44a0123548730a5c502be2c4 (patch)
treeb9eb64096c54ff6f49f8b0d1dcddbd0071606faf /lib/std/slurp.myr
parenta72122d49d80fae5d7ffce3a7eeb47b320b9f2c6 (diff)
downloadmc-c3a4e93229ca543d44a0123548730a5c502be2c4.tar.gz
fix memory leak in fslurp
Diffstat (limited to 'lib/std/slurp.myr')
-rw-r--r--lib/std/slurp.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/slurp.myr b/lib/std/slurp.myr
index 849f187..bda1383 100644
--- a/lib/std/slurp.myr
+++ b/lib/std/slurp.myr
@@ -42,6 +42,7 @@ const fslurp = {fd
buf = slgrow(buf, bufsz)
;;
| `Fail e:
+ slfree(buf)
-> `Fail e
;;
;;