C Double Free Or Corruption Prev