fix double-free
authorChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 16:50:00 +0000 (17:50 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 16:50:00 +0000 (17:50 +0100)
src/ats-tests/gnunet-solver-eval.c

index 0e49a3a323976b6b76b9795bcccf13754fda69ad..11e00c60fbcdff8616af0a44f5ea4ffd36d0c577 100644 (file)
@@ -331,12 +331,14 @@ load_episode (struct Experiment *e,
             o->pref_type = GNUNET_ATS_PREFERENCE_LATENCY;
           else
           {
-              fprintf (stderr, "Invalid preference in operation %u `%s' in episode %u\n",
-                  op_counter, op, cur->id);
+              fprintf (stderr,
+                       "Invalid preference in operation %u `%s' in episode %u\n",
+                       op_counter,
+                       op,
+                       cur->id);
               GNUNET_free (type);
               GNUNET_free (op_name);
               GNUNET_free (op);
-              GNUNET_free (pref);
               GNUNET_free (sec_name);
               GNUNET_free_non_null (pref);
               GNUNET_free (o);