mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
unposted: make 19655 a bit safer
This commit is contained in:
parent
2f8a646d4e
commit
514a476afe
2 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
2004-03-18 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: make 19655 a bit safer.
|
||||
|
||||
* 19657: Src/modules.c: Leak when an autoloadable math function
|
||||
was read in. Also, it was impossible to autoload multiple math
|
||||
functions from the same library.
|
||||
|
|
|
@ -2674,6 +2674,7 @@ tiedarrunsetfn(Param pm, int exp)
|
|||
/* paranoia -- shouldn't need these, but in case we reuse the struct... */
|
||||
pm->u.data = NULL;
|
||||
zsfree(pm->ename);
|
||||
pm->ename = NULL;
|
||||
pm->flags &= ~PM_TIED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue