diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2014-08-22 14:03:08 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2014-08-22 14:03:08 +0000 |
commit | 835ecdcc41a52e17fb4dc76fbd8a432384f4e193 (patch) | |
tree | 37e9ef3c9926d4b2e20616570bcd890e934d0157 | |
parent | a69220704bee50ad720dc799be708db5c9183952 (diff) | |
download | gnunet-835ecdcc41a52e17fb4dc76fbd8a432384f4e193.tar.gz gnunet-835ecdcc41a52e17fb4dc76fbd8a432384f4e193.zip |
Do not realloc as this will render the pointers to ActiveContexts invalid.
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c index 24ec73921..3b6ea6b0c 100644 --- a/src/dht/gnunet_dht_profiler.c +++ b/src/dht/gnunet_dht_profiler.c | |||
@@ -1155,7 +1155,6 @@ test_run (void *cls, | |||
1155 | ac_cnt++; | 1155 | ac_cnt++; |
1156 | } | 1156 | } |
1157 | n_active = ac_cnt; | 1157 | n_active = ac_cnt; |
1158 | a_ac = GNUNET_realloc (a_ac, n_active * sizeof (struct ActiveContext)); | ||
1159 | INFO ("Active peers: %u\n", n_active); | 1158 | INFO ("Active peers: %u\n", n_active); |
1160 | 1159 | ||
1161 | /* start DHT service on all peers */ | 1160 | /* start DHT service on all peers */ |