aligned malloc and free code