cmark

My personal build of CMark ✏️

Commit
a90d61665a3ba565d98b4dc8a1ed44170142c6bc
Parent
b34af68668c514b73102acc4c32e7bd6ac5a8301
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed unnecessary strbuf_free's.

Diffstat

3 files changed, 0 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified src/html.c 1 0 1
Modified src/man.c 1 0 1
Modified src/xml.c 1 0 1
diff --git 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
@@ -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
@@ -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;
 }