Fix mem leak.