summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 88a4f32..42cd8b1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5,6 +5,7 @@
#include "config.h"
#include "memory.h"
#include "cmark.h"
+#include "node.h"
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <io.h>
@@ -61,7 +62,7 @@ static void print_document(cmark_node *document, writer_format writer,
exit(1);
}
printf("%s", result);
- free(result);
+ cmark_node_mem(document)->free(result);
}
int main(int argc, char *argv[]) {