diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-19 10:30:42 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-19 10:30:42 +0000 |
commit | 6d9135befe12593ebc756cc7608d241cb892d096 (patch) | |
tree | 037b4c088701997302f4ba41850bdc05500655f2 /Src/Zle/zle_main.c | |
parent | 09c5818b393a14d693e5b7424b23e0a155bcaa60 (diff) | |
download | zsh-6d9135befe12593ebc756cc7608d241cb892d096.tar.gz zsh-6d9135befe12593ebc756cc7608d241cb892d096.tar.xz zsh-6d9135befe12593ebc756cc7608d241cb892d096.zip |
18543: memory leak vared'ing arrays
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r-- | Src/Zle/zle_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 1f2f07a09..8daf60085 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1177,9 +1177,10 @@ bin_vared(char *name, char **args, Options 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 |