about summary refs log tree commit diff
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
parented708a901be74fe49c6357db0b10f5bf451edadf (diff)
downloadzsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.gz
zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.tar.xz
zsh-323c72520a2ae42bc4e8b4d7c5c2279e2a5f24d5.zip
Felix: fix for memory leak (11718)
-rw-r--r--ChangeLog2
-rw-r--r--Src/module.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a5dc6e186..a097afb16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-06-02  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* Felix: 11718: Src/module.c: fix for memory leak
+
 	* 11722: Src/Zle/compcore.c, Src/Zle/complete.c: fix some memory
  	leaks (thanks, Felix)
 	
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;
 }