found and removed memory leak