fixed small memory leak