diff --git a/interpreter/code_interpreters/subprocess_code_interpreter.py b/interpreter/code_interpreters/subprocess_code_interpreter.py index af6e111b23..33aeadf870 100644 --- a/interpreter/code_interpreters/subprocess_code_interpreter.py +++ b/interpreter/code_interpreters/subprocess_code_interpreter.py @@ -35,6 +35,8 @@ def preprocess_code(self, code): def terminate(self): self.process.terminate() + self.proc.stdin.close() + self.proc.stdout.close() def start_process(self): if self.process: