_malloc() -> _new()
authorJulius Bünger <buenger@mytum.de>
Fri, 26 Dec 2014 00:02:00 +0000 (00:02 +0000)
committerJulius Bünger <buenger@mytum.de>
Fri, 26 Dec 2014 00:02:00 +0000 (00:02 +0000)
src/rps/gnunet-service-rps.c

index a3bfbc53635b4906aea3bcd8f795956365219ef4..3e699e6065b57b415f5452928dd9ac1c96819550 100644 (file)
@@ -1359,7 +1359,7 @@ handle_inbound_channel (void *cls,
   } else {
     struct peer_context *ctx;
 
-    ctx = GNUNET_malloc (sizeof(struct peer_context));
+    ctx = GNUNET_new(struct peer_context);
     ctx->in_flags = in_other_gossip_list;
     ctx->mq = NULL; // TODO create mq?
     ctx->from_channel = channel;