Fixed stack overflow bug in releasing a very long link list.