Răsfoiți Sursa

fix memory leak

shtrophic 1 an în urmă
părinte
comite
13e4a7cda5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      activitypub.c

+ 1 - 1
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));