diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-21 18:44:42 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-21 18:44:42 +0000 |
commit | d0e8abe99375917c6b7dd64570063b9e2e27f146 (patch) | |
tree | f9203de96246c829d50080a0ffa2d26645d78c15 /src/mesh | |
parent | c841b8b3e9c1ed86c612e0e600e3200d86ae018f (diff) | |
download | gnunet-d0e8abe99375917c6b7dd64570063b9e2e27f146.tar.gz gnunet-d0e8abe99375917c6b7dd64570063b9e2e27f146.zip |
- allocate memory, not array anymore
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-mesh-profiler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c index 8bec791a8..f0c55b495 100644 --- a/src/mesh/gnunet-mesh-profiler.c +++ b/src/mesh/gnunet-mesh-profiler.c | |||
@@ -965,6 +965,7 @@ main (int argc, char *argv[]) | |||
965 | fprintf (stderr, "%s peers is not valid (> 2)\n", argv[1]); | 965 | fprintf (stderr, "%s peers is not valid (> 2)\n", argv[1]); |
966 | return 1; | 966 | return 1; |
967 | } | 967 | } |
968 | peers = GNUNET_malloc (sizeof (struct MeshPeer) * peers_total); | ||
968 | 969 | ||
969 | ids = GNUNET_CONTAINER_multipeermap_create (2 * peers_total, GNUNET_YES); | 970 | ids = GNUNET_CONTAINER_multipeermap_create (2 * peers_total, GNUNET_YES); |
970 | GNUNET_assert (NULL != ids); | 971 | GNUNET_assert (NULL != ids); |
@@ -976,6 +977,7 @@ main (int argc, char *argv[]) | |||
976 | &tmain, NULL, /* tmain cls */ | 977 | &tmain, NULL, /* tmain cls */ |
977 | &incoming_channel, &channel_cleaner, | 978 | &incoming_channel, &channel_cleaner, |
978 | handlers, ports); | 979 | handlers, ports); |
980 | GNUNET_free (peers); | ||
979 | 981 | ||
980 | return 0; | 982 | return 0; |
981 | } | 983 | } |