commit 8ce4bd7

grunfink  ·  2026-01-17 04:24:50 +0000 UTC
parent 33b0667
Fixed small memory leak.
1 files changed,  +2, -2
M html.c
M html.c
+2, -2
 1@@ -3710,7 +3710,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
 2 xs_html *html_people_list(snac *user, xs_list *list, const char *header, const char *t, const char *proxy, int do_count)
 3 {
 4     xs_html *snac_posts;
 5-    const char *header_cnt;
 6+    xs *header_cnt;
 7     if (do_count)
 8         header_cnt = xs_fmt("%s - %d\n", header, xs_list_len(list));
 9     else
10@@ -3719,7 +3719,7 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c
11     xs_html *people = xs_html_tag("div",
12         xs_html_tag("h2",
13             xs_html_attr("class", "snac-header"),
14-            xs_html_raw(header_cnt)),
15+            xs_html_text(header_cnt)),
16         snac_posts = xs_html_tag("details",
17                 xs_html_attr("open", NULL),
18                 xs_html_tag("summary",