Commit 73aa243

Eric Bower  ·  2026-02-28 22:48:01 -0500 EST
parent 804e4e2
fix(wait): use-after-free
1 files changed,  +1, -1
+1, -1
......@@ -474,10 +474,10 @@ pub fn main() !void {
474474 } else if (std.mem.eql(u8, cmd, "wait") or std.mem.eql(u8, cmd, "w")) {
475475 var args_raw: std.ArrayList([]const u8) = .empty;
476476 defer {
477- args_raw.deinit(alloc);
478477 for (args_raw.items) |sesh| {
479478 alloc.free(sesh);
480479 }
480+ args_raw.deinit(alloc);
481481 }
482482 while (args.next()) |session_name| {
483483 const sesh = try getSeshName(alloc, session_name);