diff options
| author | 2025-05-22 11:18:48 +0200 | |
|---|---|---|
| committer | 2025-05-22 11:18:48 +0200 | |
| commit | 56816b305155fee2154c7991ba9be8c0e7671307 (patch) | |
| tree | 48e09b5fd7ae62f75f7bb4e6de7d00f9e374047f /activitypub.c | |
| parent | Merge pull request 'use utf-8 lowercase function for tags #396' (#400) from p... (diff) | |
| download | snac2-56816b305155fee2154c7991ba9be8c0e7671307.tar.gz snac2-56816b305155fee2154c7991ba9be8c0e7671307.tar.xz snac2-56816b305155fee2154c7991ba9be8c0e7671307.zip | |
Minor memory leak fixes.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
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) | |||
| 903 | if (*v == '#') { | 903 | if (*v == '#') { |
| 904 | /* hashtag */ | 904 | /* hashtag */ |
| 905 | xs *d = xs_dict_new(); | 905 | xs *d = xs_dict_new(); |
| 906 | xs *n = xs_utf8_to_lower(xs_dup(v)); | 906 | xs *n = xs_utf8_to_lower(v); |
| 907 | xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1); | 907 | xs *h = xs_fmt("%s?t=%s", srv_baseurl, n + 1); |
| 908 | xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v); | 908 | xs *l = xs_fmt("<a href=\"%s\" class=\"mention hashtag\" rel=\"tag\">%s</a>", h, v); |
| 909 | 909 | ||