Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81645c6200850f6f07e9b06fa65a4a9fafb1633ce2e63a64c122de2a85836716
Ticket: ae09f6b190ceec31747572edb9f9be8bb03a592f
Mem leak in trunk
User & Date: sebres on 2024-07-14 23:57:19
Changes

  1. icomment:
    The reason for the side effect is pretty simple - LoadCleanupProc uses Tcl_GetAssocData internally [.//info?name=288f7d23cad3c599d0840c5467616bcc9eb6ecc940c870210f413870e52fdfd0&ln=1217-1220|here] and because the hash entry is already removed, it gets NULL and so the clean-up doesn't invoke unload below and therefore leaking.
    
    Strange is that this was never noticed in 8.6, which was not affected by [34870ab5756911d1] and the hash entry removal were there before the call of the clean-up proc initially.
    
    I'll try to fix it if I identify all affected branches.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"