From 05f6be9d35388208ca6c1814563b3bba45854df5 Mon Sep 17 00:00:00 2001 From: andreas_kupries Date: Wed, 7 May 2003 16:01:31 +0000 Subject: * generic/tclProc.c (TclCloneProc): Fixed leaking of 'procNew', reported by Cisco. --- ChangeLog | 5 +++++ generic/tclProc.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 26ec2ce..369c8fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-07 Andreas Kupries + + * generic/tclProc.c (TclCloneProc): Fixed leaking of 'procNew', + reported by Cisco. + 2003-04-15 Andreas Kupries * 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; } -- cgit v0.12