Fixed global leak