Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 34185ea48b9e65b712db70597fb5ea79 > files > 123

python-soap-0.12.0-6.mga4.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'