db8b5b018f
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/ksh#642af4d65a6ae8825306305765a595a6f10eba47
20 lines
395 B
Diff
20 lines
395 B
Diff
diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c
|
|
index 1ba7347..ab745d4 100644
|
|
--- a/src/cmd/ksh93/sh/xec.c
|
|
+++ b/src/cmd/ksh93/sh/xec.c
|
|
@@ -640,7 +640,11 @@ int sh_eval(register Sfio_t *iop, int mode)
|
|
if(lineno)
|
|
shp->inlineno = lineno;
|
|
if(io_save)
|
|
+ {
|
|
sfclose(io_save);
|
|
+ io_save = 0;
|
|
+ }
|
|
+
|
|
sh_freeup(shp);
|
|
shp->st.staklist = saveslp;
|
|
shp->fn_reset = 0;
|
|
--
|
|
2.9.3
|
|
|