1.1 --- a/src/cx/tree.h Wed Feb 21 18:53:55 2024 +0100 1.2 +++ b/src/cx/tree.h Mon Feb 26 21:07:23 2024 +0100 1.3 @@ -90,6 +90,11 @@ 1.4 */ 1.5 void *node; 1.6 /** 1.7 + * Stores a copy of the next pointer of the visited node. 1.8 + * Allows freeing a node on exit without corrupting the iteration. 1.9 + */ 1.10 + void *next; 1.11 + /** 1.12 * Internal stack. 1.13 * Will be automatically freed once the iterator becomes invalid. 1.14 *