diff options
-rw-r--r-- | mdoc.c | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -228,27 +228,20 @@ mdoc_meta(struct mdoc *mdoc) void -mdoc_meta_free(struct mdoc *mdoc) +mdoc_free(struct mdoc *mdoc) { + if (mdoc->first) + mdoc_node_freelist(mdoc->first); + if (mdoc->htab) + mdoc_tokhash_free(mdoc->htab); if (mdoc->meta.title) free(mdoc->meta.title); if (mdoc->meta.os) free(mdoc->meta.os); if (mdoc->meta.name) free(mdoc->meta.name); -} - -void -mdoc_free(struct mdoc *mdoc) -{ - - if (mdoc->first) - mdoc_node_freelist(mdoc->first); - if (mdoc->htab) - mdoc_tokhash_free(mdoc->htab); - free(mdoc); } |