This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Xavion
Recipients Xavion
Date 2016-09-15.04:31:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473913875.21.0.186726929179.issue28165@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-15 04:31:15Xavionsetrecipients: + Xavion
2016-09-15 04:31:15Xavionsetmessageid: <1473913875.21.0.186726929179.issue28165@psf.upfronthosting.co.za>
2016-09-15 04:31:15Xavionlinkissue28165 messages
2016-09-15 04:31:14Xavioncreate