Hi ptrblck, thanks for the reply. Is there any chance the incremental memory results in the second block which do the node_forward and could not be freed? I don’t actually know how to free the tree.state or tree here.