diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-04-07 14:34:30 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-04-07 14:34:30 +0000 |
commit | e475cc908fd698f01fcdd05699a06f289daa1ce2 (patch) | |
tree | 22b5fa29e202318e1e2d558ea06c324538a785bb /src/ats-tests | |
parent | 9f61dcf8a3d6f56dbf2f244154bf71cb153d3130 (diff) | |
download | gnunet-e475cc908fd698f01fcdd05699a06f289daa1ce2.tar.gz gnunet-e475cc908fd698f01fcdd05699a06f289daa1ce2.zip |
fixing resource leak
Diffstat (limited to 'src/ats-tests')
-rw-r--r-- | src/ats-tests/gnunet-solver-eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ats-tests/gnunet-solver-eval.c b/src/ats-tests/gnunet-solver-eval.c index 7b6972af7..1abb36560 100644 --- a/src/ats-tests/gnunet-solver-eval.c +++ b/src/ats-tests/gnunet-solver-eval.c | |||
@@ -141,6 +141,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
141 | op_counter, op, cur->id); | 141 | op_counter, op, cur->id); |
142 | GNUNET_free (op); | 142 | GNUNET_free (op); |
143 | GNUNET_free (op_name); | 143 | GNUNET_free (op_name); |
144 | GNUNET_free (sec_name); | ||
144 | return GNUNET_SYSERR; | 145 | return GNUNET_SYSERR; |
145 | } | 146 | } |
146 | GNUNET_free (op_name); | 147 | GNUNET_free (op_name); |
@@ -154,6 +155,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
154 | op_counter, op, cur->id); | 155 | op_counter, op, cur->id); |
155 | GNUNET_free (op); | 156 | GNUNET_free (op); |
156 | GNUNET_free (op_name); | 157 | GNUNET_free (op_name); |
158 | GNUNET_free (sec_name); | ||
157 | return GNUNET_SYSERR; | 159 | return GNUNET_SYSERR; |
158 | } | 160 | } |
159 | if (o->src_id > (e->num_masters - 1)) | 161 | if (o->src_id > (e->num_masters - 1)) |
@@ -162,6 +164,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
162 | o->src_id, op_counter, op, cur->id); | 164 | o->src_id, op_counter, op, cur->id); |
163 | GNUNET_free (op); | 165 | GNUNET_free (op); |
164 | GNUNET_free (op_name); | 166 | GNUNET_free (op_name); |
167 | GNUNET_free (sec_name); | ||
165 | return GNUNET_SYSERR; | 168 | return GNUNET_SYSERR; |
166 | } | 169 | } |
167 | GNUNET_free (op_name); | 170 | GNUNET_free (op_name); |
@@ -175,6 +178,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
175 | op_counter, op, cur->id); | 178 | op_counter, op, cur->id); |
176 | GNUNET_free (op); | 179 | GNUNET_free (op); |
177 | GNUNET_free (op_name); | 180 | GNUNET_free (op_name); |
181 | GNUNET_free (sec_name); | ||
178 | return GNUNET_SYSERR; | 182 | return GNUNET_SYSERR; |
179 | } | 183 | } |
180 | if (o->dest_id > (e->num_slaves - 1)) | 184 | if (o->dest_id > (e->num_slaves - 1)) |
@@ -183,6 +187,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
183 | o->dest_id, op_counter, op, cur->id); | 187 | o->dest_id, op_counter, op, cur->id); |
184 | GNUNET_free (op); | 188 | GNUNET_free (op); |
185 | GNUNET_free (op_name); | 189 | GNUNET_free (op_name); |
190 | GNUNET_free (sec_name); | ||
186 | return GNUNET_SYSERR; | 191 | return GNUNET_SYSERR; |
187 | } | 192 | } |
188 | GNUNET_free (op_name); | 193 | GNUNET_free (op_name); |
@@ -216,6 +221,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
216 | GNUNET_free (type); | 221 | GNUNET_free (type); |
217 | GNUNET_free (op); | 222 | GNUNET_free (op); |
218 | GNUNET_free (op_name); | 223 | GNUNET_free (op_name); |
224 | GNUNET_free (sec_name); | ||
219 | return GNUNET_SYSERR; | 225 | return GNUNET_SYSERR; |
220 | } | 226 | } |
221 | GNUNET_free (op_name); | 227 | GNUNET_free (op_name); |
@@ -230,6 +236,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
230 | GNUNET_free (type); | 236 | GNUNET_free (type); |
231 | GNUNET_free (op); | 237 | GNUNET_free (op); |
232 | GNUNET_free (op_name); | 238 | GNUNET_free (op_name); |
239 | GNUNET_free (sec_name); | ||
233 | return GNUNET_SYSERR; | 240 | return GNUNET_SYSERR; |
234 | } | 241 | } |
235 | GNUNET_free (op_name); | 242 | GNUNET_free (op_name); |
@@ -248,6 +255,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
248 | GNUNET_free (type); | 255 | GNUNET_free (type); |
249 | GNUNET_free (op_name); | 256 | GNUNET_free (op_name); |
250 | GNUNET_free (op); | 257 | GNUNET_free (op); |
258 | GNUNET_free (sec_name); | ||
251 | return GNUNET_SYSERR; | 259 | return GNUNET_SYSERR; |
252 | } | 260 | } |
253 | } | 261 | } |
@@ -274,6 +282,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
274 | GNUNET_free (type); | 282 | GNUNET_free (type); |
275 | GNUNET_free (op_name); | 283 | GNUNET_free (op_name); |
276 | GNUNET_free (op); | 284 | GNUNET_free (op); |
285 | GNUNET_free (sec_name); | ||
277 | return GNUNET_SYSERR; | 286 | return GNUNET_SYSERR; |
278 | } | 287 | } |
279 | GNUNET_free (op_name); | 288 | GNUNET_free (op_name); |
@@ -288,6 +297,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
288 | GNUNET_free (type); | 297 | GNUNET_free (type); |
289 | GNUNET_free (op_name); | 298 | GNUNET_free (op_name); |
290 | GNUNET_free (op); | 299 | GNUNET_free (op); |
300 | GNUNET_free (sec_name); | ||
291 | GNUNET_free_non_null (pref); | 301 | GNUNET_free_non_null (pref); |
292 | return GNUNET_SYSERR; | 302 | return GNUNET_SYSERR; |
293 | } | 303 | } |
@@ -304,6 +314,7 @@ load_episode (struct Experiment *e, struct Episode *cur, | |||
304 | GNUNET_free (op_name); | 314 | GNUNET_free (op_name); |
305 | GNUNET_free (op); | 315 | GNUNET_free (op); |
306 | GNUNET_free (pref); | 316 | GNUNET_free (pref); |
317 | GNUNET_free (sec_name); | ||
307 | GNUNET_free_non_null (pref); | 318 | GNUNET_free_non_null (pref); |
308 | return GNUNET_SYSERR; | 319 | return GNUNET_SYSERR; |
309 | } | 320 | } |