about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 }