diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-09-18 18:07:42 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-09-18 18:07:42 -0700 |
commit | e3cdabe53dfe23fcb9bc1a9de8af4c64914a6709 (patch) | |
tree | 4a09ebad9cbb1ebbc3dffb9aad01269643550a44 /src/html | |
parent | ce1923214cd8cc9bd77068e6cb08a9d08a7e5495 (diff) | |
parent | 507d8d3a09f6704e8c1f21e5a5df2e4e014e6779 (diff) |
Merge pull request #132 from JordanMilne/fix_render_leak
Fix memory leak when rendering images as HTML
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/html.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html/html.c b/src/html/html.c index 6f3bc76..ab6fc35 100644 --- a/src/html/html.c +++ b/src/html/html.c @@ -111,6 +111,8 @@ static void inlines_to_html(strbuf *html, node_inl* ils) } ils = ils->next; } + + strbuf_free(&scrap); } // Convert a node_block list to HTML. Returns 0 on success, and sets result. |