[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: don't free element that is
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: don't free element that is stack-allocated now |
Date: |
Tue, 28 Feb 2017 18:23:15 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 237dd9f9c don't free element that is stack-allocated now
237dd9f9c is described below
commit 237dd9f9c93cabd29015d0f5e3c8ceff8af3f071
Author: Florian Dold <address@hidden>
AuthorDate: Tue Feb 28 18:23:12 2017 +0100
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,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: don't free element that is stack-allocated now,
gnunet <=