Blame SOURCES/ksh-20120801-dotdoublefree.patch

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