summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/params.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b07f9f34a..8932c546e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/Src/params.c b/Src/params.c
index d742a389e..49c3a93d7 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -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;
}