small memory leak correction