fixed small memory leak in config