commit 13e4a7c

shtrophic  ·  2025-01-20 22:03:27 +0000 UTC
parent 4c1a2d2
fix memory leak
1 files changed,  +1, -1
+1, -1
1@@ -970,7 +970,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
2                     "\n",
3                     from, email, subject);
4 
5-        xs_dict *mailinfo = xs_dict_new();
6+        xs *mailinfo = xs_dict_new();
7         xs_dict_append(mailinfo, "from", from);
8         xs_dict_append(mailinfo, "to", email);
9         xs_dict_append(mailinfo, "body", xs_fmt("%s%s", header, body));