Overview
| Artifact ID: | 0828fdf967ee58036fa4fe09820a19903d7c4ef7 |
|---|---|
| Ticket: | f00009f7ce4b58c8b6caedf976e37ea78be6d3c0
file exists, mtime... procedures leaks |
| User & Date: | sebres on 2015-07-29 17:21:54 |
Changes
- icomment:
have found a fix on my branches and another ticket (in the same time) von Don, http://core.tcl.tk/tcl/tktview/3479689fffffffffffff My solution was a diff below, I don't know anymore why it was not so good for tcl comunity (but I not have leaks in my private branches with it): ``` generic/tclFileName.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generic/tclFileName.c b/generic/tclFileName.c index a8360fc..d416eeb 100644 --- a/generic/tclFileName.c +++ b/generic/tclFileName.c @@ -823,6 +823,11 @@ Tcl_FSJoinToPath( */ Tcl_IncrRefCount(ret); + // [SB] if will be deleted - prevent leaks on pathPtr (refCount) by ObjDeletePending (delayed free) : + if (!Tcl_IsShared(lobj)) { + // free list now : + TclFreeIntRep(lobj); + }; Tcl_DecrRefCount(lobj); ret->refCount--; return ret; ``` Will try later to merge it in 8.6 for testing. - login: "sebres"
- mimetype: "text/plain"