From 507d8d3a09f6704e8c1f21e5a5df2e4e014e6779 Mon Sep 17 00:00:00 2001
From: Jordan Milne <jordan.milne@saynotolinux.com>
Date: Thu, 18 Sep 2014 09:26:05 -0300
Subject: Fix memory leak when rendering images as HTML

---
 src/html/html.c | 2 ++
 1 file changed, 2 insertions(+)

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.
-- 
cgit v1.2.3