diff -r 62d3aecc5bb7 -r 4f02995ce44e src/cx/tree.h --- a/src/cx/tree.h Wed Feb 21 18:53:55 2024 +0100 +++ b/src/cx/tree.h Mon Feb 26 21:07:23 2024 +0100 @@ -90,6 +90,11 @@ */ void *node; /** + * Stores a copy of the next pointer of the visited node. + * Allows freeing a node on exit without corrupting the iteration. + */ + void *next; + /** * Internal stack. * Will be automatically freed once the iterator becomes invalid. *