Backed out changeset 5f17f4325f31 (bug 1218679) for memory leaks on a CLOSED TREE