Deleted the malloc that was causing problems