shithub: mc

Download patch

ref: 516fa1fdca8b62c85deeaf2e3d0b3f826afc8dba
parent: bed033d73b58b686cc0367e41eb78b3c6a57c9d6
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 29 08:45:40 EST 2016

Fix mktemp getenv use.

    env vars aren't allocated.

--- a/lib/std/mktemp.myr
+++ b/lib/std/mktemp.myr
@@ -48,11 +48,10 @@
 
 	match std.getenv("TMPDIR")
 	| `std.Some d:	tmpdir = d
-	| `std.None:	tmpdir = std.sldup("/tmp")
+	| `std.None:	tmpdir = "/tmp"
 	;;
 
 	path = randpath(tmpdir, base)
-	std.slfree(tmpdir)
 	-> path
 }