about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_main.c')
-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 */