From f23d2c05aba83b5e9e5b3ccda616027513787dc6 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 24 Jul 2023 12:52:09 +0200 Subject: [PATCH] Fixed minor memory leak. --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.c b/format.c index fe71996..71e48a1 100644 --- a/format.c +++ b/format.c @@ -137,7 +137,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach) if (in_pre) { // Encode all HTML characters when we're in pre element until we are out. - ss = encode_html(xs_dup(v)); + ss = encode_html(v); s = xs_str_cat(s, ss); s = xs_str_cat(s, "
");