New submission from Xavion:
Each time I run a shell command via the 'subprocess' module, I notice that the
memory footprint of my program increases by roughly 4 KiB.
I've tested the problem with two different slices of code; the result is the
same in either case (long after the function finishes).
Code slice 1:
check_output("true")
Code slice 2:
pTest = Popen("true", stdout=PIPE, stderr=PIPE)
pTest.wait()
pTest.stdout.close()
pTest.stderr.close()
del pTest
gc.collect()
I'm using Python v3.5.2-1 on Arch Linux; it was installed via the [extra]
repository. Let me know if you need any further information.
----------
components: Library (Lib)
messages: 276514
nosy: Xavion
priority: normal
severity: normal
status: open
title: The 'subprocess' module leaks roughly 4 KiB of memory per call
versions: Python 3.5
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28165>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com