File: src/session.zig:128-132; src/window.zig:110
Severity: LOW
Status: ✅ FIXED
pty.getCwd() as before.name_buf (mirroring
Window.setName), so repeated renames cost nothing in the arena.Test: existing session-rename tests (rename, newname) pass unchanged;
suite green.
Related theme: #359/#360/#361 — session-arena growth has no release path
Every rename respawns respawns:
self.name = try self.arena.allocator().dupe(u8, new_name); // old slice orphaned
pane.cwd = allocator.dupe(...) likewise on each respawn. Individually tiny;
unbounded over long sessions with chatty prompts.
Either track-and-free via a small side table of owned strings, or move these fields to fixed inline buffers (names are bounded), or reset-friendly scratch arena per replacement.