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 { | |
| 474 | 474 | } else if (std.mem.eql(u8, cmd, "wait") or std.mem.eql(u8, cmd, "w")) { | |
| 475 | 475 | var args_raw: std.ArrayList([]const u8) = .empty; | |
| 476 | 476 | defer { | |
| 477 | - | args_raw.deinit(alloc); | |
| 478 | 477 | for (args_raw.items) |sesh| { | |
| 479 | 478 | alloc.free(sesh); | |
| 480 | 479 | } | |
| 480 | + | args_raw.deinit(alloc); | |
| 481 | 481 | } | |
| 482 | 482 | while (args.next()) |session_name| { | |
| 483 | 483 | const sesh = try getSeshName(alloc, session_name); |