szn

Bug 77 — Memory leak in windowTitleCallback — old name never freed

77. Memory leak in windowTitleCallback — old name never freed

File: src/window.zig:272–282 Severity: HIGH Status: ✅ FIXED — free old name before assigning new dupe.

const new_name = self.allocator.dupe(u8, title) catch return;
self.name = new_name;   // OLD NAME NEVER FREED

Every time a pane’s title changes (changing directories, opening files), the old self.name is replaced without freeing the previous allocation. Cumulative leak that grows unbounded over time.