summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-10-10 01:05:08 (GMT)
committerhobbs <hobbs>2001-10-10 01:05:08 (GMT)
commitbefbc9e74c4022b8bdf065338dfca942e9243c92 (patch)
tree32a06a3c0599aff0b1d255a0f25cc14e28ec4fa2
parent21e938024fd2e6442e33f71eb6103106a391c7b1 (diff)
downloadtcl-befbc9e74c4022b8bdf065338dfca942e9243c92.zip
tcl-befbc9e74c4022b8bdf065338dfca942e9243c92.tar.gz
tcl-befbc9e74c4022b8bdf065338dfca942e9243c92.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.
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclFileName.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d35643d..d2323bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-09 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * generic/tclFileName.c (Tcl_SplitPath): corrected mem leak
+ intro'd with VFS code where the result obj from Tcl_FSSplitPath
+ was not getting freed.
+
2001-10-09 Miguel Sofer <msofer@users.sourceforge.net>
* generic/tclLiteral.c: (TclReleaseLiteral) reverted previous
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);
}
/*