Severity: LOW
Status: ✅ FIXED
Files: src/grid.zig
try grid.lines.ensureTotalCapacity(allocator, height);
try grid.resize(height);
resize allocates each line’s cells; on OOM the lines array is never deinited. Contrast clone:217 which has errdefer copy.deinit().
Add errdefer grid.lines.deinit(allocator); (and deinit any partially-created lines consistent with resize semantics) before try grid.resize.