diff options
Diffstat (limited to 'src/mesh/mesh_path.c')
-rw-r--r-- | src/mesh/mesh_path.c | 2 |
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) | |||
60 | { | 60 | { |
61 | struct MeshPeerPath *p; | 61 | struct MeshPeerPath *p; |
62 | 62 | ||
63 | p = GNUNET_malloc (sizeof (struct MeshPeerPath)); | 63 | p = GNUNET_new (struct MeshPeerPath); |
64 | if (length > 0) | 64 | if (length > 0) |
65 | { | 65 | { |
66 | p->length = length; | 66 | p->length = length; |