about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-03-18 13:54:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-03-18 13:54:22 +0000
commit514a476afe7c7e5ed617074eda538933641be5f8 (patch)
tree4e3f5897cafeff21b2ea63c4d519fe2f7723bc54
parent2f8a646d4e68d3f515d0b5275d179562a219a9ed (diff)
downloadzsh-514a476afe7c7e5ed617074eda538933641be5f8.tar.gz
zsh-514a476afe7c7e5ed617074eda538933641be5f8.tar.xz
zsh-514a476afe7c7e5ed617074eda538933641be5f8.zip
unposted: make 19655 a bit safer
-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;
 }