Do not call malloc during terminate