summaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2016-05-13 22:49:23 +0000
committerJulius Bünger <buenger@mytum.de>2016-05-13 22:49:23 +0000
commit2e9c33a97aaf0431f6c79ba87597e052b7c95e1b (patch)
treeb0a828416427fb2ed5fc63e5fef84de3acab3610 /src/rps/gnunet-service-rps_sampler.c
parenta4dc4b16eaa5101aba46168ad7d809a1f3086c0c (diff)
-rps: try to avoid leaking memory
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.c')
-rw-r--r--src/rps/gnunet-service-rps_sampler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c
index 2ac6054f4..a3e33e5c8 100644
--- a/src/rps/gnunet-service-rps_sampler.c
+++ b/src/rps/gnunet-service-rps_sampler.c
@@ -327,6 +327,7 @@ sampler_resize (struct RPS_Sampler *sampler, unsigned int new_size)
"-%" PRIu32 ": %s",
i,
sampler->sampler_elements[i]->file_name);
+ GNUNET_free (sampler->sampler_elements[i]);
}
GNUNET_array_grow (sampler->sampler_elements,