Removed memory leak