proper use of mac_free(); do not upgrade return status from WARN to OK
fix indentation