diff options
author | vincentdarley <vincentdarley@noemail.net> | 2003-10-03 17:45:36 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley@noemail.net> | 2003-10-03 17:45:36 (GMT) |
commit | 5f3d4f86060e3beaffdbe57df79b219a56a78d43 (patch) | |
tree | 60e58def2b9c6ca8559eb36ce4d18dcb276d6fe3 /win/tclWinFile.c | |
parent | 6d5ce5fda4be85b72bc287cbc814894bb5026e2e (diff) | |
download | tcl-5f3d4f86060e3beaffdbe57df79b219a56a78d43.zip tcl-5f3d4f86060e3beaffdbe57df79b219a56a78d43.tar.gz tcl-5f3d4f86060e3beaffdbe57df79b219a56a78d43.tar.bz2 |
backporting of filesystem tests, docs
FossilOrigin-Name: 9cc6cd11c033e2c40d3aba0f11cb4f1ce995b1cb
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r-- | win/tclWinFile.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index f1f1ffa..13a2c48 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.44.2.5 2003/07/17 00:16:04 hobbs Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.44.2.6 2003/10/03 17:45:37 vincentdarley Exp $ */ //#define _WIN32_WINNT 0x0500 @@ -818,7 +818,8 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types) } } dirName = Tcl_DStringValue(&dirString); - + Tcl_DecrRefCount(fileNamePtr); + /* * First verify that the specified path is actually a directory. */ @@ -1556,9 +1557,13 @@ TclpObjStat(pathPtr, statPtr) transPtr = Tcl_FSGetTranslatedPath(NULL, pathPtr); if (transPtr == NULL || (strpbrk(Tcl_GetString(transPtr), "?*") != NULL)) { + if (transPtr != NULL) { + Tcl_DecrRefCount(transPtr); + } Tcl_SetErrno(ENOENT); return -1; } + Tcl_DecrRefCount(transPtr); #endif /* |