git: 9front

Download patch

ref: efd8c71ea652669b994b40c9b2916e9efb153b41
parent: 0bb2b8e5749cf7331fd8629fc688d5aaab8042ba
author: ftrvxmtrx <devnull@localhost>
date: Thu May 1 23:47:18 EDT 2014

samterm: free() after getenv()

--- a/sys/src/cmd/samterm/plan9.c
+++ b/sys/src/cmd/samterm/plan9.c
@@ -41,6 +41,7 @@
 	t = getenv("tabstop");
 	if(t != nil)
 		maxtab = strtoul(t, nil, 0);
+	free(t);
 	draw(screen, screen->clipr, display->white, nil, ZP);
 }
 
--