Fix one of the memory leak fixes