Bläddra i källkod

Fixed memory leak.

default 3 år sedan
förälder
incheckning
2364d960b7
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      activitypub.c

+ 1 - 1
activitypub.c

@@ -656,7 +656,7 @@ void notify(snac *snac, char *type, char *utype, char *actor, char *msg)
 
 
     if (strcmp(type, "Create") == 0) {
     if (strcmp(type, "Create") == 0) {
         /* only notify of notes specifically for us */
         /* only notify of notes specifically for us */
-        char *rcpts = recipient_list(snac, msg, 0);
+        xs *rcpts = recipient_list(snac, msg, 0);
 
 
         if (xs_list_in(rcpts, snac->actor) == -1)
         if (xs_list_in(rcpts, snac->actor) == -1)
             return;
             return;