This repository has no description
Something went wrong. Try again.
libghostty: add ghostty_free for cross-runtime memory safety master
On Windows, Zig's built-in libc and MSVC's CRT maintain separate heaps, so calling free() on memory allocated by the library causes undefined behavior. Add ghostty_free() that frees through the same allocator that performed the allocation, making it safe on all platforms. Update format_alloc docs and all examples to use ghostty_free() instead of free(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author Alessandro De Blasis Co-author Claude Opus 4.6 (1M context) Date (Mar 23, 2026, 7:52 PM UTC) Commit c1e616c6 c1e616c6cda402c6823d97dba89dde690808f2b7 Parent 1213dacd 1213dacd5be631a896b9618a0bfebd8efa2e5c79