shithub: mc

Download patch

ref: c3fca3a06a2584a0193b352410febd43d136d53e
parent: a72122d49d80fae5d7ffce3a7eeb47b320b9f2c6
parent: c3a4e93229ca543d44a0123548730a5c502be2c4
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Feb 2 11:40:48 EST 2016

Merge pull request #67 from andrewchambers/memleak

fix memory leak in fslurp

--- a/lib/std/slurp.myr
+++ b/lib/std/slurp.myr
@@ -42,6 +42,7 @@
 				buf = slgrow(buf, bufsz)
 			;;
 		| `Fail e:
+			slfree(buf)
 			-> `Fail e
 		;;
 	;;