summaryrefslogtreecommitdiff
path: root/Src/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/params.c b/Src/params.c
index fb79268da..993eaa097 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -3998,6 +3998,8 @@ addenv(Param pm, char *value)
* the other branch? If so, we don't actually need to
* store pm->env at all, just a flag that the value was set.
*/
+ if (pm->env)
+ zsfree(pm->env);
pm->env = newenv;
#else
/*