aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-05-22 11:18:48 +0200
committergrunfink <grunfink@comam.es>2025-05-22 11:18:48 +0200
commit56816b305155fee2154c7991ba9be8c0e7671307 (patch)
tree48e09b5fd7ae62f75f7bb4e6de7d00f9e374047f /format.c
parent096bb217105202ce6ec5bad046fd70cc3e3508cd (diff)
Minor memory leak fixes.
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 0f844cd..9bad391 100644
--- a/format.c
+++ b/format.c
@@ -444,7 +444,7 @@ xs_str *sanitize(const char *content)
if (n & 0x1) {
xs *s1 = xs_strip_i(xs_crop_i(xs_dup(v), v[1] == '/' ? 2 : 1, -1));
xs *l1 = xs_split_n(s1, " ", 1);
- xs *tag = xs_utf8_to_lower(xs_dup(xs_list_get(l1, 0)));
+ xs *tag = xs_utf8_to_lower(xs_list_get(l1, 0));
xs *s2 = NULL;
int i;