summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2001-10-10 01:05:08 (GMT)
committerhobbs <hobbs@noemail.net>2001-10-10 01:05:08 (GMT)
commit6708c4db8cd0f9d3ef59689806293136228ffa98 (patch)
tree32a06a3c0599aff0b1d255a0f25cc14e28ec4fa2 /generic/tclFileName.c
parent04cfbb6334afa5d62f1c7ef886b9f6a458619c11 (diff)
downloadtcl-6708c4db8cd0f9d3ef59689806293136228ffa98.zip
tcl-6708c4db8cd0f9d3ef59689806293136228ffa98.tar.gz
tcl-6708c4db8cd0f9d3ef59689806293136228ffa98.tar.bz2
* generic/tclFileName.c (Tcl_SplitPath): corrected mem leak
intro'd with VFS code where the result obj from Tcl_FSSplitPath was not getting freed. FossilOrigin-Name: ef4a8d5e9e75c21619a9ff2b804ab01d25552279
Diffstat (limited to 'generic/tclFileName.c')
-rw-r--r--generic/tclFileName.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 4c2a580..99b9daf 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.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: tclFileName.c,v 1.21 2001/09/27 00:19:57 dgp Exp $
+ * RCS: @(#) $Id: tclFileName.c,v 1.22 2001/10/10 01:05:08 hobbs Exp $
*/
#include "tclInt.h"
@@ -610,6 +610,11 @@ Tcl_SplitPath(path, argcPtr, argvPtr)
}
(*argvPtr)[i] = NULL;
+ /*
+ * Free the result ptr given to us by Tcl_FSSplitPath
+ */
+
+ Tcl_DecrRefCount(resultPtr);
}
/*