release host memory of each tree after finish constructing