diff options
author | Yuki Izumi <kivikakk@github.com> | 2016-09-27 13:47:47 +1000 |
---|---|---|
committer | Yuki Izumi <kivikakk@github.com> | 2016-09-27 13:47:47 +1000 |
commit | 268adf3c03fe44b427752ccd0009d8d80612a3ca (patch) | |
tree | 040673964a3d5a20ee436e7125971ee59bfe1be7 /src/main.c | |
parent | e1f89c6141d4ed487d0b98198655ce7d7dcfd79a (diff) |
One more cmark_mem use
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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[]) { |