Unify memory management.