repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
73aa243
parent
804e4e2
author
Eric Bower
date
2026-02-28 22:48:01 -0500 EST
fix(wait): use-after-free
1 files changed,  +1, -1
M src/main.zig
+1, -1
 1@@ -474,10 +474,10 @@ pub fn main() !void {
 2     } else if (std.mem.eql(u8, cmd, "wait") or std.mem.eql(u8, cmd, "w")) {
 3         var args_raw: std.ArrayList([]const u8) = .empty;
 4         defer {
 5-            args_raw.deinit(alloc);
 6             for (args_raw.items) |sesh| {
 7                 alloc.free(sesh);
 8             }
 9+            args_raw.deinit(alloc);
10         }
11         while (args.next()) |session_name| {
12             const sesh = try getSeshName(alloc, session_name);