{{tag>zxt:extension}} ====== 00000001:0002 - FIX: #bind double freeing ====== ===== Information ===== * **ID:** 00000001:0002 ===== Flags ===== ^ Flag ^ Set? (MUST/MAY/...) ^ Description ^ | parsing_must | MUST NOT | | | reading_must | MUST NOT | | | writing_must | MUST NOT | | | playing_should | MAY | | | playing_must | MAY | | | editing_should | MUST NOT | | ===== Field data ===== None. ===== Description ===== This extension fixes double frees in the #BIND command. Its presence guarantees that #BINDing on an object which is already bound will not cause invalid memory freeing. In ZZT 3.2's codebase, this involves two specific additional checks: * If the stat which is changing bindings's data pointer is used by another stat, it should not free that data pointer, * If the stat is binding to itself, it should not free that data pointer. ===== Implementations ===== * [[https://github.com/OpenZoo/ClassicZoo/commit/35d5771e9cda17968dce75c70f591e5c79e14457|Patch to ZZT 3.2 (1/2)]] * [[https://github.com/OpenZoo/ClassicZoo/commit/35c0bd35d1f52714f1c520b559155210ab093db6|Patch to ZZT 3.2 (2/2)]]