summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorGravatar default2023-07-24 12:52:09 +0200
committerGravatar default2023-07-24 12:52:09 +0200
commitf23d2c05aba83b5e9e5b3ccda616027513787dc6 (patch)
treeab8a8d771f864870094f59ce4f89566c7e416f96 /format.c
parentMerge pull request 'Allow several tags & fix video element width, and more.' ... (diff)
downloadsnac2-f23d2c05aba83b5e9e5b3ccda616027513787dc6.tar.gz
snac2-f23d2c05aba83b5e9e5b3ccda616027513787dc6.tar.xz
snac2-f23d2c05aba83b5e9e5b3ccda616027513787dc6.zip
Fixed minor memory leak.
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
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)
137 137
138 if (in_pre) { 138 if (in_pre) {
139 // Encode all HTML characters when we're in pre element until we are out. 139 // Encode all HTML characters when we're in pre element until we are out.
140 ss = encode_html(xs_dup(v)); 140 ss = encode_html(v);
141 141
142 s = xs_str_cat(s, ss); 142 s = xs_str_cat(s, ss);
143 s = xs_str_cat(s, "<br>"); 143 s = xs_str_cat(s, "<br>");