Overview
| Artifact ID: | c0eaf35b7f06782ba18b169e891ebadc642f34ee7c8ed67c84f9ebd7cf4baa04 |
|---|---|
| Ticket: | 1e62dd74f70cf7ba7af3b34f0dfeffc9db529665
|
| User & Date: | jan.nijtmans on 2021-04-02 06:39:59 |
Changes
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459306.77777182"
- closer changed to: "jan.nijtmans"
- 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. - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"