diff options
| author | 2025-04-27 05:15:32 +0200 | |
|---|---|---|
| committer | 2025-04-27 05:15:32 +0200 | |
| commit | 3dec7404bf59397452f3cc32fdf33b379f2546fc (patch) | |
| tree | 5357dbb166e8c2da315a9ee98714bb8cad7aefd4 | |
| parent | Replaced tabs with spaces. (diff) | |
| download | penes-snac2-3dec7404bf59397452f3cc32fdf33b379f2546fc.tar.gz penes-snac2-3dec7404bf59397452f3cc32fdf33b379f2546fc.tar.xz penes-snac2-3dec7404bf59397452f3cc32fdf33b379f2546fc.zip | |
Fixed memory leak.
| -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, | |||
| 1053 | from, email, subject); | 1053 | from, email, subject); |
| 1054 | 1054 | ||
| 1055 | xs *mailinfo = xs_dict_new(); | 1055 | xs *mailinfo = xs_dict_new(); |
| 1056 | xs *body = xs_fmt("%s%s", header, body); | ||
| 1056 | mailinfo = xs_dict_append(mailinfo, "from", from); | 1057 | mailinfo = xs_dict_append(mailinfo, "from", from); |
| 1057 | mailinfo = xs_dict_append(mailinfo, "to", email); | 1058 | mailinfo = xs_dict_append(mailinfo, "to", email); |
| 1058 | mailinfo = xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body)); | 1059 | mailinfo = xs_dict_append(mailinfo, "body", body); |
| 1059 | 1060 | ||
| 1060 | enqueue_email(mailinfo, 0); | 1061 | enqueue_email(mailinfo, 0); |
| 1061 | } | 1062 | } |