shithub: mc

Download patch

ref: dd20049d283a34e86e328fdd132ab13526fcaa0b
parent: 0deadc64c88ae25fbe1b28d603ec8416e45779eb
author: Ori Bernstein <[email protected]>
date: Thu Jan 17 20:17:35 EST 2013

When the stdlib grows a slice, free the old one.

--- a/libstd/alloc.myr
+++ b/libstd/alloc.myr
@@ -103,6 +103,7 @@
 	for i = 0; i < n; i++
 		new[i] = sl[i]
 	;;
+	slfree(sl)
 	-> new
 }