about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-11-13 16:45:36 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-11-13 16:45:36 +0000
commitaf7eba0c848d12629d41be991467d35a902a9e66 (patch)
tree2f737d3e4c643d77bd7d79874fbb998ef8803fa7 /Src/Zle/zle_main.c
parent2d241d0ff9f26f75d5923d896bd30c61b189b099 (diff)
downloadzsh-af7eba0c848d12629d41be991467d35a902a9e66.tar.gz
zsh-af7eba0c848d12629d41be991467d35a902a9e66.tar.xz
zsh-af7eba0c848d12629d41be991467d35a902a9e66.zip
merge back changes from 4.1
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index cb1854e9b..b7c7767b7 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -949,9 +949,10 @@ bin_vared(char *name, char **args, char *ops, int func)
 
 	/*
 	 * Use spacesplit with fourth argument 1: identify quoted separators,
-	 * unquote but don't split.
+	 * and unquote.  This duplicates the string, so we still need to free.
 	 */
 	a = spacesplit(t, 1, 0, 1);
+	zsfree(t);
 	if (PM_TYPE(pm->flags) == PM_ARRAY)
 	    setaparam(args[0], a);
 	else