aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-12-18 08:09:10 +0100
committergrunfink <grunfink@comam.es>2025-12-18 08:09:10 +0100
commit7c065cbc9879582985cef3d3ad8b2ae197b8b851 (patch)
tree568ca6194ba6071c1f1a0ab20347e4852cb122b5 /html.c
parent85ed0eb0d535700a5df837c37f51848811e461a0 (diff)
Fixed some xs_dup() leaks.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 8cc0067..dae84b7 100644
--- a/html.c
+++ b/html.c
@@ -5173,9 +5173,9 @@ int html_post_handler(const xs_dict *req, const char *q_path,
}
else
if (strcmp(action, L("EmojiReact")) == 0) { /** **/
- const char *eid = xs_dict_get(p_vars, "eid");
+ xs *eid = xs_dup(xs_dict_get(p_vars, "eid"));
- eid = xs_strip_chars_i(xs_dup(eid), ":");
+ eid = xs_strip_chars_i(eid, ":");
const xs_dict *ret = msg_emoji_init(&snac, id, eid);
/* fails if either invalid or already reacted */