Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a8343e97c54d3a047c4356139c9b7f69 > files > 97

python-soap-0.12.0-9mdv2010.0.noarch.rpm

#!/usr/bin/python 
 
import sys
sys.path.insert(1, "..")
import SOAPpy
import time
import gc 
import types

gc.set_debug(gc.DEBUG_SAVEALL) 

for i in range(400):
    try:
        t = SOAPpy.SOAP.parseSOAPRPC('bad soap payload') 
    except: pass

gc.collect()
if len(gc.garbage):
    print 'still leaking'
else:
    print 'no leak'