aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/gnunet-consensus-profiler.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-09-16 13:33:53 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-09-16 13:33:53 +0000
commit6da15ab6ff3ceabe4301ec653137e018f9abc280 (patch)
tree4b7bf07f10af856bdfa3800fdda0a5c4ffda50af /src/consensus/gnunet-consensus-profiler.c
parent2a95ef75f9df9267eda0a2a6625082288bc9715b (diff)
downloadgnunet-6da15ab6ff3ceabe4301ec653137e018f9abc280.tar.gz
gnunet-6da15ab6ff3ceabe4301ec653137e018f9abc280.zip
- mem leak
Diffstat (limited to 'src/consensus/gnunet-consensus-profiler.c')
-rw-r--r--src/consensus/gnunet-consensus-profiler.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/consensus/gnunet-consensus-profiler.c b/src/consensus/gnunet-consensus-profiler.c
index b64abeff6..def3012a3 100644
--- a/src/consensus/gnunet-consensus-profiler.c
+++ b/src/consensus/gnunet-consensus-profiler.c
@@ -347,6 +347,7 @@ run (void *cls, char *const *args, const char *cfgfile,
347{ 347{
348 static char *session_str = "gnunet-consensus/test"; 348 static char *session_str = "gnunet-consensus/test";
349 char *topology; 349 char *topology;
350 int topology_cmp_result;
350 351
351 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "testbed", "OVERLAY_TOPOLOGY", &topology)) 352 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "testbed", "OVERLAY_TOPOLOGY", &topology))
352 { 353 {
@@ -355,15 +356,16 @@ run (void *cls, char *const *args, const char *cfgfile,
355 return; 356 return;
356 } 357 }
357 358
358 if (0 == strcasecmp (topology, "NONE")) 359 topology_cmp_result = strcasecmp (topology, "NONE");
360 GNUNET_free (topology);
361
362 if (0 == topology_cmp_result)
359 { 363 {
360 fprintf (stderr, "'OVERLAY_TOPOLOGY' set to 'NONE', " 364 fprintf (stderr, "'OVERLAY_TOPOLOGY' set to 'NONE', "
361 "seems like you passed the wrong configuration file\n"); 365 "seems like you passed the wrong configuration file\n");
362 return; 366 return;
363 } 367 }
364 368
365 GNUNET_free (topology);
366
367 if (num_peers < replication) 369 if (num_peers < replication)
368 { 370 {
369 fprintf (stderr, "k must be <=n\n"); 371 fprintf (stderr, "k must be <=n\n");