diff options
| author | 2025-05-22 11:18:48 +0200 | |
|---|---|---|
| committer | 2025-05-22 11:18:48 +0200 | |
| commit | 56816b305155fee2154c7991ba9be8c0e7671307 (patch) | |
| tree | 48e09b5fd7ae62f75f7bb4e6de7d00f9e374047f /mastoapi.c | |
| parent | Merge pull request 'use utf-8 lowercase function for tags #396' (#400) from p... (diff) | |
| download | penes-snac2-56816b305155fee2154c7991ba9be8c0e7671307.tar.gz penes-snac2-56816b305155fee2154c7991ba9be8c0e7671307.tar.xz penes-snac2-56816b305155fee2154c7991ba9be8c0e7671307.zip | |
Minor memory leak fixes.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1638,7 +1638,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1638 | const char *aq = xs_dict_get(args, "q"); | 1638 | const char *aq = xs_dict_get(args, "q"); |
| 1639 | 1639 | ||
| 1640 | if (!xs_is_null(aq)) { | 1640 | if (!xs_is_null(aq)) { |
| 1641 | xs *q = xs_utf8_to_lower(xs_dup(aq)); | 1641 | xs *q = xs_utf8_to_lower(aq); |
| 1642 | out = xs_list_new(); | 1642 | out = xs_list_new(); |
| 1643 | xs *wing = following_list(&snac1); | 1643 | xs *wing = following_list(&snac1); |
| 1644 | xs *wers = follower_list(&snac1); | 1644 | xs *wers = follower_list(&snac1); |