diff options
author | dgp <dgp@noemail.net> | 2009-10-27 20:31:08 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2009-10-27 20:31:08 (GMT) |
commit | cbef6fe86e62102a6076efcffd77b3abfe946d52 (patch) | |
tree | e86f1ae3c04e048317655554218936d03c2b20ab /generic/tclPathObj.c | |
parent | c7354ed14b7aba685a77fb34d2cdfcbdd0a0d61e (diff) | |
download | tcl-cbef6fe86e62102a6076efcffd77b3abfe946d52.zip tcl-cbef6fe86e62102a6076efcffd77b3abfe946d52.tar.gz tcl-cbef6fe86e62102a6076efcffd77b3abfe946d52.tar.bz2 |
* generic/tclPathObj.c: Missing refcount on cached normalized path
caused crashes. [Bug 2884203].
FossilOrigin-Name: 07717b8954c1637d2f446647494310e6059cc4bc
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r-- | generic/tclPathObj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index 7599529..6d36fe4 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.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: tclPathObj.c,v 1.83 2009/09/30 03:11:26 dgp Exp $ + * RCS: @(#) $Id: tclPathObj.c,v 1.84 2009/10/27 20:31:08 dgp Exp $ */ #include "tclInt.h" @@ -1940,6 +1940,7 @@ Tcl_FSGetNormalizedPath( TclFSNormalizeToUniquePath(interp, copy, cwdLen-1, (fsPathPtr->nativePathPtr == NULL ? &clientData : NULL)); fsPathPtr->normPathPtr = copy; + Tcl_IncrRefCount(fsPathPtr->normPathPtr); if (clientData != NULL) { fsPathPtr->nativePathPtr = clientData; } |