about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-09-08 06:24:16 +0000
committerClint Adams <clint@users.sourceforge.net>2008-09-08 06:24:16 +0000
commitc715630baa75d5d65c68de3df852164342ff130c (patch)
treedb531a36b082ba34586d2c5cdefc9d26478df8b1 /Src/Zle
parent07462f8303174f1118b1641b7a6520144e240ce7 (diff)
downloadzsh-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.c2
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 */