Index: egb_tree.c =================================================================== --- egb_tree.c (revision 31912) +++ egb_tree.c (revision 31913) @@ -75,10 +75,12 @@ void egb_node_free(egb_node_t *node) { - egb_node_t *n; + egb_node_t *n, *next; - for(n = node->first_child; n != NULL; n = n->next) + for(n = node->first_child; n != NULL; n = next) { + next = n->next; egb_node_free(n); + } if (node->props.table != NULL) { htss_entry_t *e; Index: trparse_bin.c =================================================================== --- trparse_bin.c (revision 31912) +++ trparse_bin.c (revision 31913) @@ -72,6 +72,7 @@ static int eagle_bin_unload(trparse_t *pst) { egb_node_free(pst->root); + pst->root = NULL; return 0; }