diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-09-08 06:24:16 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-09-08 06:24:16 +0000 |
commit | c715630baa75d5d65c68de3df852164342ff130c (patch) | |
tree | db531a36b082ba34586d2c5cdefc9d26478df8b1 | |
parent | 07462f8303174f1118b1641b7a6520144e240ce7 (diff) | |
download | zsh-c715630baa75d5d65c68de3df852164342ff130c.tar.gz zsh-c715630baa75d5d65c68de3df852164342ff130c.tar.xz zsh-c715630baa75d5d65c68de3df852164342ff130c.zip |
25634: free t before returning if both t and errflag are set.
-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 */ |