szn

Bug 9 — Memory leak in Grid.scrollDown()

9. Memory leak in Grid.scrollDown()

File: src/grid.zig:148–153 Status: ✅ FIXED — added errdefer to pop/deinit on error.

history.pop() removes a line, then lines.insert(0, line). If insert fails, the popped line is leaked — no errdefer to deinit it on error propagation.