Fixed linked list leak