Xavion added the comment:

Okay, I've modified the title to match what I've written below.

I've just run some further tests on this problem.  The attached archive 
contains code samples and the output generated (both with and without garbage 
collection).

As you can see, the memory stays constant in the first case.  In the second, 
the presence of the loop is probably what throws a spanner in the works.  
Garbage collection seems to make the outcome slightly worse (in the second 
case).

The situation isn't as bad as I first reported, but the memory does nonetheless 
keep increasing in the second case (which it probably shouldn't).

----------
title: The 'subprocess' module leaks roughly 4 KiB of memory per call -> The 
'subprocess' module leaks memory when called in certain ways
Added file: http://bugs.python.org/file44708/Memory-Leak-Test.zip

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28165>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to