Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: fix for memory leak in module.c
- X-seq: zsh-workers 11718
- From: Felix Rosencrantz <f_rosencrantz@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: fix for memory leak in module.c
- Date: Thu, 1 Jun 2000 22:24:05 -0700 (PDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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