I suggest replacing that with `char phys_addr[6]`; saves having to juggle malloc/free calls.