aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-21 17:25:47 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-21 17:25:47 -0800
commita90d61665a3ba565d98b4dc8a1ed44170142c6bc (patch)
treed1bb19ae3c840fb6d6b2aa0de95811031b257545
parentb34af68668c514b73102acc4c32e7bd6ac5a8301 (diff)
Removed unnecessary strbuf_free's.
-rw-r--r--src/html.c1
-rw-r--r--src/man.c1
-rw-r--r--src/xml.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/html.c b/src/html.c
index abc3e83..8ccb495 100644
--- a/src/html.c
+++ b/src/html.c
@@ -319,6 +319,5 @@ char *cmark_render_html(cmark_node *root, long options)
result = (char *)cmark_strbuf_detach(&html);
cmark_iter_free(iter);
- cmark_strbuf_free(&html);
return result;
}
diff --git a/src/man.c b/src/man.c
index aa81b2b..f57eb75 100644
--- a/src/man.c
+++ b/src/man.c
@@ -246,6 +246,5 @@ char *cmark_render_man(cmark_node *root, long options)
result = (char *)cmark_strbuf_detach(&man);
cmark_iter_free(iter);
- cmark_strbuf_free(&man);
return result;
}
diff --git a/src/xml.c b/src/xml.c
index f630aba..f169241 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -170,6 +170,5 @@ char *cmark_render_xml(cmark_node *root, long options)
result = (char *)cmark_strbuf_detach(&xml);
cmark_iter_free(iter);
- cmark_strbuf_free(&xml);
return result;
}