diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-09-27 10:38:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-27 10:38:30 +0200 |
commit | e89187b0604eff3a8251a902bfbbdb3cd7ff415b (patch) | |
tree | 040673964a3d5a20ee436e7125971ee59bfe1be7 /src | |
parent | e1f89c6141d4ed487d0b98198655ce7d7dcfd79a (diff) | |
parent | 268adf3c03fe44b427752ccd0009d8d80612a3ca (diff) |
Merge pull request #158 from kivikakk/one-more-mem
One more cmark_mem use
Diffstat (limited to 'src')
-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[]) { |