Fixed list<> memory leak