about summary refs log tree commit diff
path: root/Src/module.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-02 08:28:42 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-02 08:28:42 +0000
commit323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5 (patch)
tree5e16f71a41933baac7e01b9ce70c80afea69896b /Src/module.c
parented708a901be74fe49c6357db0b10f5bf451edadf (diff)
downloadzsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.gz
zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.xz
zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.zip
Felix: fix for memory leak (11718)
Diffstat (limited to 'Src/module.c')
-rw-r--r--Src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/module.c b/Src/module.c
index fdaab61c5..c9d643aa6 100644
--- a/Src/module.c
+++ b/Src/module.c
@@ -1776,7 +1776,7 @@ add_autoparam(char *nam, char *module)
     if ((pm = (Param) gethashnode2(paramtab, nam)))
 	unsetparam_pm(pm, 0, 1);
 
-    pm = setsparam(ztrdup(nam), ztrdup(module));
+    pm = setsparam(nam, ztrdup(module));
 
     pm->flags |= PM_AUTOLOAD;
 }