Fix a warning.
Tidy get macAddress code, fix a leak.