delete allocated trees in attempt to suppress memory leak