termio: env should not freed because arena gets it

This commit is contained in:
Mitchell Hashimoto
2023-02-27 11:55:04 -08:00
parent 83a1d783b1
commit a8025f6ec2

View File

@ -434,7 +434,6 @@ const Subprocess = struct {
/// Clean up the subprocess. This will stop the subprocess if it is started.
pub fn deinit(self: *Subprocess) void {
self.stop();
self.env.deinit();
self.arena.deinit();
self.* = undefined;
}