summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2003-05-07 16:01:31 (GMT)
committerandreas_kupries <akupries@shaw.ca>2003-05-07 16:01:31 (GMT)
commit05f6be9d35388208ca6c1814563b3bba45854df5 (patch)
tree28eb70bb8c0b42d0eff0bc3acbfb7c4fd7215ea2
parent2c77ab389b6c2a729bd22124f4541b28c6ab5111 (diff)
downloadtcl-mod_8_3_4_branch.zip
tcl-mod_8_3_4_branch.tar.gz
tcl-mod_8_3_4_branch.tar.bz2
* generic/tclProc.c (TclCloneProc): Fixed leaking of 'procNew', mod_8_3_4_branch
reported by Cisco.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclProc.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 26ec2ce..369c8fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-07 Andreas Kupries <andreask@activestate.com>
+
+ * generic/tclProc.c (TclCloneProc): Fixed leaking of 'procNew',
+ reported by Cisco.
+
2003-04-15 Andreas Kupries <andreask@activestate.com>
* generic/tclBasic.c (Tcl_CloneInterp): Added code to propagate
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 953f9b2..8493d5a 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclProc.c,v 1.23.6.3 2002/11/26 19:48:57 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.23.6.4 2003/05/07 16:01:32 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -1341,6 +1341,7 @@ TclCloneProc (interp, nsPtr, procSrcPtr)
Tcl_GetHashKey (procSrcPtr->cmdPtr->hPtr->tablePtr,
procSrcPtr->cmdPtr->hPtr));
if (result != TCL_OK) {
+ ckfree((char*)procNew);
return NULL;
}