Memory leaks are removed in MRR.

Memory leaks are removed in MRR.