mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
It wasn't immediately clear from the implementation whether passing zero-length memory to free() was undefined behavior or intentionally supported. Since ArrayList and other core data structures rely on this behavior working correctly, this should be explicitly documented as part of the public API contract.