Blame SOURCES/ksh-20120801-dotdoublefree.patch

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