summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2003-11-03 12:48:29 (GMT)
committervincentdarley <vincentdarley@noemail.net>2003-11-03 12:48:29 (GMT)
commitb5952fe51bd3a8836f2b925e7e50a65be689bcc6 (patch)
treec0254f727dca7fd1b7f26a20bfcec35ea2df79a0 /unix
parentf4c3357f67cc9998f21840f27c0e35e2c62a7feb (diff)
downloadtcl-b5952fe51bd3a8836f2b925e7e50a65be689bcc6.zip
tcl-b5952fe51bd3a8836f2b925e7e50a65be689bcc6.tar.gz
tcl-b5952fe51bd3a8836f2b925e7e50a65be689bcc6.tar.bz2
free path when no longer needed
FossilOrigin-Name: 5e80e5abd3c9c987730b6484d8fe5a5a6e22c75f
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixFile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index d68bebd..f268ad5 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixFile.c,v 1.33 2003/10/13 16:48:07 vincentdarley Exp $
+ * RCS: @(#) $Id: tclUnixFile.c,v 1.34 2003/11/03 12:48:30 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -267,6 +267,7 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types)
|| !S_ISDIR(statBuf.st_mode)) {
Tcl_DStringFree(&dsOrig);
Tcl_DStringFree(&ds);
+ Tcl_DecrRefCount(fileNamePtr);
return TCL_OK;
}