shithub: riscv

Download patch

ref: e610c573d7e2807bacd0a0be1e9cbcef2d3b2eea
parent: 405de1e6a2bcba579aa48262893ca3da7ccb5e54
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);
 }