diff options
| author | 2025-12-18 08:09:10 +0100 | |
|---|---|---|
| committer | 2025-12-18 08:09:10 +0100 | |
| commit | 7c065cbc9879582985cef3d3ad8b2ae197b8b851 (patch) | |
| tree | 568ca6194ba6071c1f1a0ab20347e4852cb122b5 /activitypub.c | |
| parent | Added emoji reactions (contributed by violette). (diff) | |
| download | snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.tar.gz snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.tar.xz snac2-7c065cbc9879582985cef3d3ad8b2ae197b8b851.zip | |
Fixed some xs_dup() leaks.
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 19f0cc6..d19a428 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1643,7 +1643,7 @@ xs_dict *msg_emoji_init(snac *snac, const char *mid, const char *eid) | |||
| 1643 | 1643 | ||
| 1644 | n_msg = xs_dict_set(n_msg, "content", content); | 1644 | n_msg = xs_dict_set(n_msg, "content", content); |
| 1645 | n_msg = xs_dict_set(n_msg, "accounts", accounts); | 1645 | n_msg = xs_dict_set(n_msg, "accounts", accounts); |
| 1646 | n_msg = xs_dict_set(n_msg, "attributedTo", xs_list_get(xs_dup(xs_dict_get(n_msg, "to")), 1)); | 1646 | n_msg = xs_dict_set(n_msg, "attributedTo", xs_list_get(xs_dict_get(n_msg, "to"), 1)); |
| 1647 | n_msg = xs_dict_set(n_msg, "accountId", snac->uid); | 1647 | n_msg = xs_dict_set(n_msg, "accountId", snac->uid); |
| 1648 | n_msg = xs_dict_set(n_msg, "tag", tag); | 1648 | n_msg = xs_dict_set(n_msg, "tag", tag); |
| 1649 | 1649 | ||