Hi,
I think the two blobs used for markdown input and output (rendered
HTML) aren't free()'d properly.
This patch only applies to test_markdown_render(), but the same
behaviour may occur at other places where markdown_to_html() is
called.
BR,
Johan
Index: src/wiki.c
==================================================================
--- src/wiki.c
+++ src/wiki.c
@@ -1431,6 +1431,8 @@
if( g.argc!=3 ) usage("FILE");
blob_zero(&out);
blob_read_from_file(&in, g.argv[2]);
markdown_to_html(&in, 0, &out);
blob_write_to_file(&out, "-");
+ fossil_free(in.aData);
+ fossil_free(out.aData);
}
_______________________________________________
fossil-dev mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev