don't free element that is stack-allocated now
authorFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 17:23:12 +0000 (18:23 +0100)
committerFlorian Dold <florian.dold@gmail.com>
Tue, 28 Feb 2017 17:23:12 +0000 (18:23 +0100)
src/consensus/test_consensus.conf
src/set/gnunet-set-profiler.c

index 036150b7fdd91aa315ba150ec8a4af0daaf76aa0..881251a66484f2adc917b5d5920a6c20b6c1e5d4 100644 (file)
@@ -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
index 7de58a0d142104f733c3bc195565bb96cbe4e00d..a6c900f5edae1e7851bf593db075375b11bfff6c 100644 (file)
@@ -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,