Commit 8d022e19 authored by Manuel Jacob's avatar Manuel Jacob
Browse files

Set buffer of buffered IO classes to None in close().

This helps to reclaim the memory used by the buffer earlier.
parent 83bc3f13f445
Pipeline #3837 passed with stage
in 13 minutes and 26 seconds
......@@ -314,6 +314,7 @@ class BufferedMixin:
finally:
with self.lock:
space.call_method(self.w_raw, "close")
self.buffer = None
def simple_flush_w(self, space):
self._check_init(space)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment