- Commit
- e89187b0604eff3a8251a902bfbbdb3cd7ff415b
- Parent
- e1f89c6141d4ed487d0b98198655ce7d7dcfd79a
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Merge pull request #158 from kivikakk/one-more-mem
One more cmark_mem use
My personal build of CMark ✏️
Merge pull request #158 from kivikakk/one-more-mem
One more cmark_mem use
1 file changed, 2 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/main.c | 3 | 2 | 1 |
diff --git 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[]) {