diff options
author | dgp <dgp@noemail.net> | 2009-10-27 20:30:46 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2009-10-27 20:30:46 (GMT) |
commit | 2f46a6bb6d8321fa5c8dc0c1df39b3af72607e4e (patch) | |
tree | 6df8259c8202f40f656fc91f00a9a952b7c400ea /generic/tclPathObj.c | |
parent | 205786b0b92dcbd955bc73e7a988b19b9e1bbaa1 (diff) | |
download | tcl-2f46a6bb6d8321fa5c8dc0c1df39b3af72607e4e.zip tcl-2f46a6bb6d8321fa5c8dc0c1df39b3af72607e4e.tar.gz tcl-2f46a6bb6d8321fa5c8dc0c1df39b3af72607e4e.tar.bz2 |
* generic/tclPathObj.c: Missing refcount on cached normalized path
caused crashes. [Bug 2884203].
FossilOrigin-Name: a60df8980eb7cd89ef33a3b22fe2ae960bc31edd
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 60220b9..bd69f09 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.66.2.9 2009/08/20 14:59:53 dgp Exp $ + * RCS: @(#) $Id: tclPathObj.c,v 1.66.2.10 2009/10/27 20:30:48 dgp Exp $ */ #include "tclInt.h" @@ -2005,6 +2005,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; } |