summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdoc.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/mdoc.c b/mdoc.c
index 53c91c37..ffacbedf 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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);
}