shithub: mc

Download patch

ref: c3a4e93229ca543d44a0123548730a5c502be2c4
parent: a72122d49d80fae5d7ffce3a7eeb47b320b9f2c6
author: andrewc <andrew_chambers@trimble.com>
date: Wed Feb 3 08:29:13 EST 2016

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
 		;;
 	;;