Revert memory changes