aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2025-01-20 23:03:27 +0100
committershtrophic <christoph@liebender.dev>2025-01-20 23:03:27 +0100
commit13e4a7cda59db29063efc5dad0823fe99ec7b764 (patch)
treecb0f479b4f1a778f807147c5c8b73fcf2081ec15
parent4c1a2d24d374d00c656c4489db7d28f80d64f9dc (diff)
fix memory leak
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index e5fc715..2b10435 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -970,7 +970,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
"\n",
from, email, subject);
- xs_dict *mailinfo = xs_dict_new();
+ xs *mailinfo = xs_dict_new();
xs_dict_append(mailinfo, "from", from);
xs_dict_append(mailinfo, "to", email);
xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body));