From 237dd9f9c93cabd29015d0f5e3c8ceff8af3f071 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 28 Feb 2017 18:23:12 +0100 Subject: [PATCH] don't free element that is stack-allocated now --- src/consensus/test_consensus.conf | 4 ++-- src/set/gnunet-set-profiler.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/consensus/test_consensus.conf b/src/consensus/test_consensus.conf index 036150b7f..881251a66 100644 --- a/src/consensus/test_consensus.conf +++ b/src/consensus/test_consensus.conf @@ -5,7 +5,7 @@ GNUNET_TEST_HOME = /tmp/test-consensus/ #OPTIONS = -L INFO BINARY = gnunet-service-evil-consensus -#PREFIX = valgrind +PREFIX = valgrind #EVIL_SPEC = 0;cram-all;noreplace;5 #EVIL_SPEC = 0;cram;5/1;cram;5 @@ -44,7 +44,7 @@ OPTIONS = -LERROR [set] #OPTIONS = -L INFO #PREFIX = valgrind --leak-check=full -PREFIX = valgrind +#PREFIX = valgrind [testbed] OVERLAY_TOPOLOGY = CLIQUE diff --git a/src/set/gnunet-set-profiler.c b/src/set/gnunet-set-profiler.c index 7de58a0d1..a6c900f5e 100644 --- a/src/set/gnunet-set-profiler.c +++ b/src/set/gnunet-set-profiler.c @@ -274,7 +274,6 @@ set_insert_iterator (void *cls, el.data = payload; el.size = element_length; GNUNET_SET_add_element (set, &el, NULL, NULL); - GNUNET_free (el); return GNUNET_YES; } @@ -436,7 +435,7 @@ main (int argc, char **argv) { 'f', "force-full", NULL, gettext_noop ("force sending full set"), GNUNET_NO, &GNUNET_GETOPT_set_uint, &force_full }, - { 'l', "element-length", NULL, + { 'w', "element-length", NULL, gettext_noop ("element length in byte"), GNUNET_NO, &GNUNET_GETOPT_set_uint, &element_length }, { 'd', "force-delta", NULL, -- 2.25.1