Find what retains memory and fix the leak.
Recent revisions are kept. Restoring one creates a new revision.