Frees an iterator that has been allocated by copy.
This function is mainly used for language bindings.
a dynamically allocated tree iterator