corrected the do while loop to create a linkedlist from all the text in the file
freed malloced new_line after do while loop