diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-10 17:50:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-10 17:50:00 +0100 |
commit | 37befa0743678992d8943ed6549be9690084570c (patch) | |
tree | 2c402a600cc76824041435f23be329fd81c49b2c /src/ats-tests | |
parent | 747694c473ed4a886e7ac4a57bb0f2965674de9a (diff) | |
download | gnunet-37befa0743678992d8943ed6549be9690084570c.tar.gz gnunet-37befa0743678992d8943ed6549be9690084570c.zip |
fix double-free
Diffstat (limited to 'src/ats-tests')
-rw-r--r-- | src/ats-tests/gnunet-solver-eval.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ats-tests/gnunet-solver-eval.c b/src/ats-tests/gnunet-solver-eval.c index 0e49a3a32..11e00c60f 100644 --- a/src/ats-tests/gnunet-solver-eval.c +++ b/src/ats-tests/gnunet-solver-eval.c | |||
@@ -331,12 +331,14 @@ load_episode (struct Experiment *e, | |||
331 | o->pref_type = GNUNET_ATS_PREFERENCE_LATENCY; | 331 | o->pref_type = GNUNET_ATS_PREFERENCE_LATENCY; |
332 | else | 332 | else |
333 | { | 333 | { |
334 | fprintf (stderr, "Invalid preference in operation %u `%s' in episode %u\n", | 334 | fprintf (stderr, |
335 | op_counter, op, cur->id); | 335 | "Invalid preference in operation %u `%s' in episode %u\n", |
336 | op_counter, | ||
337 | op, | ||
338 | cur->id); | ||
336 | GNUNET_free (type); | 339 | GNUNET_free (type); |
337 | GNUNET_free (op_name); | 340 | GNUNET_free (op_name); |
338 | GNUNET_free (op); | 341 | GNUNET_free (op); |
339 | GNUNET_free (pref); | ||
340 | GNUNET_free (sec_name); | 342 | GNUNET_free (sec_name); |
341 | GNUNET_free_non_null (pref); | 343 | GNUNET_free_non_null (pref); |
342 | GNUNET_free (o); | 344 | GNUNET_free (o); |