Blame SOURCES/ksh-20120801-dotdoublefree.patch

ff22b9
diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c
ff22b9
index 1ba7347..ab745d4 100644
ff22b9
--- a/src/cmd/ksh93/sh/xec.c
ff22b9
+++ b/src/cmd/ksh93/sh/xec.c
ff22b9
@@ -640,7 +640,11 @@ int sh_eval(register Sfio_t *iop, int mode)
ff22b9
 	if(lineno)
ff22b9
 		shp->inlineno = lineno;
ff22b9
 	if(io_save)
ff22b9
+	{
ff22b9
 		sfclose(io_save);
ff22b9
+		io_save = 0;
ff22b9
+	}
ff22b9
+
ff22b9
 	sh_freeup(shp);
ff22b9
 	shp->st.staklist = saveslp;
ff22b9
 	shp->fn_reset = 0;
ff22b9
-- 
ff22b9
2.9.3
ff22b9