diff options
| author | grunfink <grunfink@comam.es> | 2025-04-27 05:15:32 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-04-27 05:15:32 +0200 |
| commit | 3dec7404bf59397452f3cc32fdf33b379f2546fc (patch) | |
| tree | 5357dbb166e8c2da315a9ee98714bb8cad7aefd4 /activitypub.c | |
| parent | ae9afd47e7b9df111312bb4a6243fdc05101dd55 (diff) | |
Fixed memory leak.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index df68151..10e5776 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1053,9 +1053,10 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, from, email, subject); xs *mailinfo = xs_dict_new(); + xs *body = xs_fmt("%s%s", header, body); mailinfo = xs_dict_append(mailinfo, "from", from); mailinfo = xs_dict_append(mailinfo, "to", email); - mailinfo = xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body)); + mailinfo = xs_dict_append(mailinfo, "body", body); enqueue_email(mailinfo, 0); } |