Fixed memleak / infinite allocating loop in WCFSetup.class.php