Cleared memory leak from insertion into chain