diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zle_main.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 67bbcd6c0..2b02d785b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-08 Clint Adams <clint@zsh.org> + + * 25634: Src/Zle/zle_main.c: free t before returning if both t and + errflag are set. + 2008-09-07 Clint Adams <clint@zsh.org> * Frank Terbeck: 25624: Completion/Unix/Command/_git: clean up git diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 0825e162b..4bccf2d46 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1595,6 +1595,8 @@ bin_vared(char *name, char **args, Options ops, UNUSED(int func)) /* error in editing */ errflag = 0; breaks = obreaks; + if (t) + zsfree(t); return 1; } /* strip off trailing newline, if any */ |