summaryrefslogtreecommitdiff
path: root/src/util/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/peer.c')
-rw-r--r--src/util/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/peer.c b/src/util/peer.c
index fa376d333..3e4e1712d 100644
--- a/src/util/peer.c
+++ b/src/util/peer.c
@@ -127,7 +127,7 @@ GNUNET_PEER_intern (const struct GNUNET_PeerIdentity *pid)
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;
}
}