aboutsummaryrefslogtreecommitdiff
path: root/activitypub.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 /activitypub.c
parent096bb217105202ce6ec5bad046fd70cc3e3508cd (diff)
Minor memory leak fixes.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index c06d8df..0cc7bcb 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -903,7 +903,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
if (*v == '#') {
/* hashtag */
xs *d = xs_dict_new();
- xs *n = xs_utf8_to_lower(xs_dup(v));
+ xs *n = xs_utf8_to_lower(v);
xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1);
xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v);