Fix a memory leak possibility of DO macro.