File: src/session.zig:128–132
allocator.free(self.name);
self.name = allocator.dupe(u8, new_name) catch self.name;
Frees self.name first, then on allocation failure assigns the already-freed pointer back. Any subsequent read of session.name is use-after-free.
Status: ✅ FIXED — dupe first, free after, return on OOM.