summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index e3b58d5..2bfe291 100644
--- a/src/main.c
+++ b/src/main.c
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
if (numfps == 0) {
document = cmark_parse_file(stdin);
print_document(document, ast);
- cmark_free_nodes(document);
+ cmark_free_blocks(document);
} else {
for (i = 0; i < numfps; i++) {
FILE *fp = fopen(argv[files[i]], "r");
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
document = cmark_parse_file(fp);
print_document(document, ast);
- cmark_free_nodes(document);
+ cmark_free_blocks(document);
fclose(fp);
}
}