summaryrefslogtreecommitdiff
path: root/src/mesh/mesh_path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/mesh_path.c')
-rw-r--r--src/mesh/mesh_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh/mesh_path.c b/src/mesh/mesh_path.c
index f1c68c005..ad1f7f4db 100644
--- a/src/mesh/mesh_path.c
+++ b/src/mesh/mesh_path.c
@@ -60,7 +60,7 @@ path_new (unsigned int length)
{
struct MeshPeerPath *p;
- p = GNUNET_malloc (sizeof (struct MeshPeerPath));
+ p = GNUNET_new (struct MeshPeerPath);
if (length > 0)
{
p->length = length;