termio/exec: need to defer deinit for DCS command

This commit is contained in:
Mitchell Hashimoto
2023-09-27 14:52:13 -07:00
parent 4724e0dcb4
commit 1dcb23de0f

View File

@ -1216,7 +1216,7 @@ const StreamHandler = struct {
pub fn dcsUnhook(self: *StreamHandler) !void {
var cmd = self.dcs.unhook() orelse return;
cmd.deinit();
defer cmd.deinit();
// log.warn("DCS command: {}", .{cmd});
switch (cmd) {