diff --git a/ChangeLog b/ChangeLog index 0d36679ae..b815fa6fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2000-09-25 Bart Schaefer * 12862: Src/exec.c: Fix STTY parameter to match documentation. + (Plus unposted addition at the end of execcmd() to clear STTYval.) 2000-09-22 Clint Adams diff --git a/Src/exec.c b/Src/exec.c index 8ac66ede7..4a8aab335 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -2363,6 +2363,9 @@ execcmd(Estate state, int input, int output, int how, int last1) xtrerr = oxtrerr; zclose(fil); } + + zsfree(STTYval); + STTYval = 0; } /* Arrange to have variables restored. */