summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuki Izumi <kivikakk@github.com>2016-09-27 13:47:47 +1000
committerYuki Izumi <kivikakk@github.com>2016-09-27 13:47:47 +1000
commit268adf3c03fe44b427752ccd0009d8d80612a3ca (patch)
tree040673964a3d5a20ee436e7125971ee59bfe1be7 /src
parente1f89c6141d4ed487d0b98198655ce7d7dcfd79a (diff)
One more cmark_mem use
Diffstat (limited to 'src')
-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[]) {