Release tree object from memory