double targett;
struct child_struct *child;
+ f = fopen(loadfile, "r");
+ if (f == NULL) {
+ perror(loadfile);
+ exit(1);
+ }
+
for (child=child0;child<child0+options.clients_per_process;child++) {
child->line = 0;
asprintf(&child->cname,"client%d", child->id);
memset(sparams[i], 0, MAX_PARM_LEN);
}
- f = fopen(loadfile, "r");
- if (f == NULL) {
- perror(loadfile);
- exit(1);
- }
-
again:
for (child=child0;child<child0+options.clients_per_process;child++) {
nb_time_reset(child);
nb_ops->cleanup(child);
}
child->cleanup_finished = 1;
+ if(child->cname){
+ free(child->cname);
+ child->cname = NULL;
+ }
}
}