Posted to tcl by stevel at Wed Jul 29 01:40:03 GMT 2026view raw

  1. The fix
  2.  
  3. Remove the Tcl_CreateExitHandler registration. TclCreateLateExitHandler()
  4. would give the right ordering but it's MODULE_SCOPE in tclInt.h and not in the
  5. stubs table, so extensions can't reach it. Freeing BioMethods buys nothing
  6. anyway  it's one allocation for the life of the process, and OpenSSL's own
  7. OPENSSL_cleanup() runs from atexit(), i.e. after Tcl has finished, so that
  8. path was already correctly ordered.