diff options
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -252,6 +252,8 @@ man_node_free(struct man_node *p) if (p->string) free(p->string); + if (p->parent) + p->parent->nchild--; free(p); } @@ -265,6 +267,7 @@ man_node_freelist(struct man_node *p) if (p->next) man_node_freelist(p->next); + assert(0 == p->nchild); man_node_free(p); } |