Fixed global leak.