removed pointer memory in parseCSV function, as pointer memory are not
freed when function dies.