Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: fix for memory leak in module.c



Here's another memory leak fix, this time for module.c

-FR


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com
Index: Src/module.c
===================================================================
--- zsh/Src/omodule.c	Sun Apr 30 10:58:36 2000
+++ zsh/Src/module.c	Thu Jun  1 19:57:37 2000
@@ -1776,7 +1776,7 @@
     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;
 }


Messages sorted by: Reverse Date, Date, Thread, Author