summaryrefslogtreecommitdiff
path: root/src/set
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-28 18:23:12 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-28 18:23:12 +0100
commit237dd9f9c93cabd29015d0f5e3c8ceff8af3f071 (patch)
treeb08dc07a03e4b71b07ff5516305003830d3b9cb8 /src/set
parentd1aa49fc2767aa141e83ba664cd1d10b3ad1987b (diff)
don't free element that is stack-allocated now
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-set-profiler.c3
1 files changed, 1 insertions, 2 deletions
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,