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 rfs
Recipients rfs
Date 2012-04-17.18:59:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334689181.81.0.435135933783.issue14606@psf.upfronthosting.co.za>
In-reply-to
Content
subprocess leaks memory on win 7 64bit (Python 2.7.3 32bit).
The following code snippet will fill up memory slowly but completely after running it multiple times. When python exits the memory is not freed.

>>>>>>>>>>

import subprocess
import shlex

for i in range(0, 10000):
    p = subprocess.Popen(shlex.split("ipconfig", posix=False))

    result = p.communicate()

print "end"

<<<<<<<<<<
History
Date User Action Args
2012-04-17 18:59:41rfssetrecipients: + rfs
2012-04-17 18:59:41rfssetmessageid: <1334689181.81.0.435135933783.issue14606@psf.upfronthosting.co.za>
2012-04-17 18:59:41rfslinkissue14606 messages
2012-04-17 18:59:41rfscreate