Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0ad1d5763b18817d9da3c046f8ef39c9586936ce33777f6121828275a2a01c78
Ticket: 3595762fffffffffffffffffffffffffffffffff
Extra Tcl_DecrRefCount in Tcl_LSearchjObjCmd
User & Date: jan.nijtmans on 2026-10-13 12:27:36
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2461327.0191766666"
  3. closer changed to: "jan.nijtmans"
  4. comment changed to:
    There is a Tcl_DecrRefCount (patObj) (~line 3425 of TclCmdIL.c) which does not seem to have a matching Tcl_IncrRefCount. patObj is not newly allocated, it is equated to objv[...] on line 3197.
    
    I don't know how to exercise that code, because I don't think the enclosing Tcl_RegExpExecObj call enclosing it can actually fail, the regexp having been already successfully compiled before without errors further up in the code. So in that sense it might be dead code but still...
    
    /Ashok
    
  5. icomment:
    Fixed in [cd129688d2|trunk], core-9-0-branch and core-8-6-branch
    
  6. login: "jan.nijtmans"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Fixed"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"