nikademus79 / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

get_threads() and get_num_threads() leak memory on OSX #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
test/test_memory_leaks.py shows both get_threads() and get_num_threads() are 
leaking memory somewhere.
The script below also shows the problem:

import psutil, os
import _psutil_osx

p = psutil.Process(os.getpid())
while 1:
    _psutil_osx.get_process_num_threads(p.pid)
    print p.get_memory_info()

Original issue reported on code.google.com by g.rodola on 4 Jul 2011 at 6:16

GoogleCodeExporter commented 8 years ago
Fixed in 1073.

Original comment by g.rodola on 4 Jul 2011 at 6:39

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 8 Jul 2011 at 7:07