diff options
| author | 2025-12-18 08:58:04 +0100 | |
|---|---|---|
| committer | 2025-12-18 08:58:04 +0100 | |
| commit | 2903b29e653d8549319ceabbb65de408d2e5c073 (patch) | |
| tree | 7d0ea2dd129512183840683d2ff135ff68b04790 /mastoapi.c | |
| parent | Fixed leak in emoji_reacted(). (diff) | |
| download | snac2-2903b29e653d8549319ceabbb65de408d2e5c073.tar.gz snac2-2903b29e653d8549319ceabbb65de408d2e5c073.tar.xz snac2-2903b29e653d8549319ceabbb65de408d2e5c073.zip | |
Fixed more minor leaks.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1165,8 +1165,8 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) | |||
| 1165 | int c = 0; | 1165 | int c = 0; |
| 1166 | const char *v; | 1166 | const char *v; |
| 1167 | 1167 | ||
| 1168 | xs_dict *msg = NULL; | ||
| 1169 | while (xs_list_next(rl, &v, &c)) { | 1168 | while (xs_list_next(rl, &v, &c)) { |
| 1169 | xs *msg = NULL; | ||
| 1170 | if (valid_status(object_get_by_md5(v, &msg))) { | 1170 | if (valid_status(object_get_by_md5(v, &msg))) { |
| 1171 | const char *content = xs_dict_get(msg, "content"); | 1171 | const char *content = xs_dict_get(msg, "content"); |
| 1172 | const char *actor = xs_dict_get(msg, "actor"); | 1172 | const char *actor = xs_dict_get(msg, "actor"); |
| @@ -1194,6 +1194,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) | |||
| 1194 | c = 0; | 1194 | c = 0; |
| 1195 | 1195 | ||
| 1196 | while (xs_list_next(rl, &v, &c)) { | 1196 | while (xs_list_next(rl, &v, &c)) { |
| 1197 | xs *msg = NULL; | ||
| 1197 | if (valid_status(object_get_by_md5(v, &msg))) { | 1198 | if (valid_status(object_get_by_md5(v, &msg))) { |
| 1198 | xs *d1 = xs_dict_new(); | 1199 | xs *d1 = xs_dict_new(); |
| 1199 | 1200 | ||