aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tests/ats-testing-experiment.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-17 03:43:36 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-17 03:43:36 +0000
commit4d804ac71152b376b93adfd461d10c6efa5bb0b0 (patch)
tree91de75deb558e9d99f07b14ace3623709e070549 /src/ats-tests/ats-testing-experiment.c
parent18deec1f15888454a5ec35351126512612754f57 (diff)
downloadgnunet-4d804ac71152b376b93adfd461d10c6efa5bb0b0.tar.gz
gnunet-4d804ac71152b376b93adfd461d10c6efa5bb0b0.zip
-leaks, leaks leaks
Diffstat (limited to 'src/ats-tests/ats-testing-experiment.c')
-rw-r--r--src/ats-tests/ats-testing-experiment.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ats-tests/ats-testing-experiment.c b/src/ats-tests/ats-testing-experiment.c
index 97409e2a2..a6feee07c 100644
--- a/src/ats-tests/ats-testing-experiment.c
+++ b/src/ats-tests/ats-testing-experiment.c
@@ -97,6 +97,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
97 char *type; 97 char *type;
98 char *pref; 98 char *pref;
99 int op_counter = 0; 99 int op_counter = 0;
100
100 fprintf (stderr, "Parsing episode %u\n",cur->id); 101 fprintf (stderr, "Parsing episode %u\n",cur->id);
101 GNUNET_asprintf(&sec_name, "episode-%u", cur->id); 102 GNUNET_asprintf(&sec_name, "episode-%u", cur->id);
102 103
@@ -134,6 +135,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
134 op_counter, op, cur->id); 135 op_counter, op, cur->id);
135 GNUNET_free (op); 136 GNUNET_free (op);
136 GNUNET_free (op_name); 137 GNUNET_free (op_name);
138 GNUNET_free (o);
137 return GNUNET_SYSERR; 139 return GNUNET_SYSERR;
138 } 140 }
139 GNUNET_free (op_name); 141 GNUNET_free (op_name);
@@ -147,6 +149,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
147 op_counter, op, cur->id); 149 op_counter, op, cur->id);
148 GNUNET_free (op); 150 GNUNET_free (op);
149 GNUNET_free (op_name); 151 GNUNET_free (op_name);
152 GNUNET_free (o);
150 return GNUNET_SYSERR; 153 return GNUNET_SYSERR;
151 } 154 }
152 if (o->src_id > (e->num_masters - 1)) 155 if (o->src_id > (e->num_masters - 1))
@@ -155,6 +158,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
155 o->src_id, op_counter, op, cur->id); 158 o->src_id, op_counter, op, cur->id);
156 GNUNET_free (op); 159 GNUNET_free (op);
157 GNUNET_free (op_name); 160 GNUNET_free (op_name);
161 GNUNET_free (o);
158 return GNUNET_SYSERR; 162 return GNUNET_SYSERR;
159 } 163 }
160 GNUNET_free (op_name); 164 GNUNET_free (op_name);
@@ -168,6 +172,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
168 op_counter, op, cur->id); 172 op_counter, op, cur->id);
169 GNUNET_free (op); 173 GNUNET_free (op);
170 GNUNET_free (op_name); 174 GNUNET_free (op_name);
175 GNUNET_free (o);
171 return GNUNET_SYSERR; 176 return GNUNET_SYSERR;
172 } 177 }
173 if (o->dest_id > (e->num_slaves - 1)) 178 if (o->dest_id > (e->num_slaves - 1))
@@ -176,6 +181,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
176 o->dest_id, op_counter, op, cur->id); 181 o->dest_id, op_counter, op, cur->id);
177 GNUNET_free (op); 182 GNUNET_free (op);
178 GNUNET_free (op_name); 183 GNUNET_free (op_name);
184 GNUNET_free (o);
179 return GNUNET_SYSERR; 185 return GNUNET_SYSERR;
180 } 186 }
181 GNUNET_free (op_name); 187 GNUNET_free (op_name);
@@ -209,6 +215,8 @@ load_episode (struct Experiment *e, struct Episode *cur,
209 GNUNET_free (type); 215 GNUNET_free (type);
210 GNUNET_free (op); 216 GNUNET_free (op);
211 GNUNET_free (op_name); 217 GNUNET_free (op_name);
218 GNUNET_free (sec_name);
219 GNUNET_free (o);
212 return GNUNET_SYSERR; 220 return GNUNET_SYSERR;
213 } 221 }
214 GNUNET_free (op_name); 222 GNUNET_free (op_name);
@@ -223,6 +231,8 @@ load_episode (struct Experiment *e, struct Episode *cur,
223 GNUNET_free (type); 231 GNUNET_free (type);
224 GNUNET_free (op); 232 GNUNET_free (op);
225 GNUNET_free (op_name); 233 GNUNET_free (op_name);
234 GNUNET_free (sec_name);
235 GNUNET_free (o);
226 return GNUNET_SYSERR; 236 return GNUNET_SYSERR;
227 } 237 }
228 GNUNET_free (op_name); 238 GNUNET_free (op_name);
@@ -241,6 +251,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
241 GNUNET_free (type); 251 GNUNET_free (type);
242 GNUNET_free (op_name); 252 GNUNET_free (op_name);
243 GNUNET_free (op); 253 GNUNET_free (op);
254 GNUNET_free (o);
244 return GNUNET_SYSERR; 255 return GNUNET_SYSERR;
245 } 256 }
246 } 257 }
@@ -267,6 +278,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
267 GNUNET_free (type); 278 GNUNET_free (type);
268 GNUNET_free (op_name); 279 GNUNET_free (op_name);
269 GNUNET_free (op); 280 GNUNET_free (op);
281 GNUNET_free (o);
270 return GNUNET_SYSERR; 282 return GNUNET_SYSERR;
271 } 283 }
272 GNUNET_free (op_name); 284 GNUNET_free (op_name);
@@ -282,6 +294,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
282 GNUNET_free (op_name); 294 GNUNET_free (op_name);
283 GNUNET_free (op); 295 GNUNET_free (op);
284 GNUNET_free_non_null (pref); 296 GNUNET_free_non_null (pref);
297 GNUNET_free (o);
285 return GNUNET_SYSERR; 298 return GNUNET_SYSERR;
286 } 299 }
287 300
@@ -298,6 +311,7 @@ load_episode (struct Experiment *e, struct Episode *cur,
298 GNUNET_free (op); 311 GNUNET_free (op);
299 GNUNET_free (pref); 312 GNUNET_free (pref);
300 GNUNET_free_non_null (pref); 313 GNUNET_free_non_null (pref);
314 GNUNET_free (o);
301 return GNUNET_SYSERR; 315 return GNUNET_SYSERR;
302 } 316 }
303 GNUNET_free (pref); 317 GNUNET_free (pref);