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 /Src/Zle | |
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.
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |