GNUNET_array_grow (table, size, size + 16);
for (i = ret; i < size; i++)
{
- table[i] = GNUNET_malloc (sizeof (struct PeerEntry));
+ table[i] = GNUNET_new (struct PeerEntry);
table[i]->pid = i + 1;
}
}
table[ret]->rc = 1;
table[ret]->pid = ret;
GNUNET_break (GNUNET_OK ==
- GNUNET_CONTAINER_multipeermap_put (map,
+ GNUNET_CONTAINER_multipeermap_put (map,
&table[ret]->id,
table[ret],
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));