Have a double free problem. But i have to go dorm.