Mon, 19 Feb 2024 22:08:09 +0100
set tree iterator stack pointer to NULL on dispose to avoid accidental double-frees
--- a/src/cx/tree.h Sun Feb 18 21:12:28 2024 +0100 +++ b/src/cx/tree.h Mon Feb 19 22:08:09 2024 +0100 @@ -119,6 +119,7 @@ */ static inline void cxTreeIteratorDispose(CxTreeIterator *iter) { free(iter->stack); + iter->stack = NULL; } /**