Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c0eaf35b7f06782ba18b169e891ebadc642f34ee7c8ed67c84f9ebd7cf4baa04
Ticket: 1e62dd74f70cf7ba7af3b34f0dfeffc9db529665
User & Date: jan.nijtmans on 2021-04-02 06:39:59
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2459306.77777182"
  3. closer changed to: "jan.nijtmans"
  4. icomment:
    From the man-page of Tcl_FreeResult():
    <pre>
        Tcl_FreeResult performs part of the work of Tcl_ResetResult. It frees up the
        memory associated with interp's result. It also sets interp->freeProc to zero, but
        does not change interp->result or clear error state. Tcl_FreeResult is most
        commonly used when a procedure is about to replace one result value with another.
    </pre>
    So, I think you want to use Tcl_ResetResult() here.
    
    Tcl_FreeResult() will be removed in Tcl 9.0, you now know why.
    See: [https://core.tcl-lang.org/tips/doc/trunk/tip/559.md]
    
    Remark: The Get_Info() calls have two parameters, but this functions is defined with 3 parameters. I just assume you forgot the first "interp" parameter, without this your code wouldn't work at all.
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"
  7. resolution changed to: "Fixed"
  8. status changed to: "Closed"