From 6d9135befe12593ebc756cc7608d241cb892d096 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 19 May 2003 10:30:42 +0000 Subject: 18543: memory leak vared'ing arrays --- Src/Zle/zle_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') 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 -- cgit 1.4.1