[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32735 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32735 - gnunet/src/mesh |
Date: |
Fri, 21 Mar 2014 19:44:42 +0100 |
Author: bartpolot
Date: 2014-03-21 19:44:42 +0100 (Fri, 21 Mar 2014)
New Revision: 32735
Modified:
gnunet/src/mesh/gnunet-mesh-profiler.c
Log:
- allocate memory, not array anymore
Modified: gnunet/src/mesh/gnunet-mesh-profiler.c
===================================================================
--- gnunet/src/mesh/gnunet-mesh-profiler.c 2014-03-21 18:44:40 UTC (rev
32734)
+++ gnunet/src/mesh/gnunet-mesh-profiler.c 2014-03-21 18:44:42 UTC (rev
32735)
@@ -965,6 +965,7 @@
fprintf (stderr, "%s peers is not valid (> 2)\n", argv[1]);
return 1;
}
+ peers = GNUNET_malloc (sizeof (struct MeshPeer) * peers_total);
ids = GNUNET_CONTAINER_multipeermap_create (2 * peers_total, GNUNET_YES);
GNUNET_assert (NULL != ids);
@@ -976,6 +977,7 @@
&tmain, NULL, /* tmain cls */
&incoming_channel, &channel_cleaner,
handlers, ports);
+ GNUNET_free (peers);
return 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32735 - gnunet/src/mesh,
gnunet <=