[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34882 - gnunet/src/rps
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34882 - gnunet/src/rps |
Date: |
Wed, 14 Jan 2015 19:24:28 +0100 |
Author: ch3
Date: 2015-01-14 19:24:28 +0100 (Wed, 14 Jan 2015)
New Revision: 34882
Modified:
gnunet/src/rps/gnunet-service-rps_sampler.c
Log:
fixing memory leaks
Modified: gnunet/src/rps/gnunet-service-rps_sampler.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps_sampler.c 2015-01-14 13:51:52 UTC (rev
34881)
+++ gnunet/src/rps/gnunet-service-rps_sampler.c 2015-01-14 18:24:28 UTC (rev
34882)
@@ -317,6 +317,7 @@
sampler->remove_cb (sampler->remove_cls, &rem_list[i]->peer_id);
GNUNET_free (rem_list[i]);
}
+ GNUNET_free (rem_list);
}
else if (old_size < new_size)
{ /* Growing */
@@ -370,7 +371,6 @@
/* Initialise context around extended sampler */
min_size = 10; // TODO make input to _samplers_init()
max_size = 1000; // TODO make input to _samplers_init()
- GNUNET_new_array (64, struct GNUNET_TIME_Relative);
sampler = GNUNET_new (struct RPS_Sampler);
sampler->sampler_size = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34882 - gnunet/src/rps,
gnunet <=