server: convert iolog in place instead of copy allocating it
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/iolog.c b/iolog.c
index 88adbf7..7b212bb 100644
--- a/iolog.c
+++ b/iolog.c
@@ -536,10 +536,12 @@
snprintf(file_name, 200, "%s_%s.log", prefix, postfix);
p = basename(file_name);
- if (td->client_type == FIO_CLIENT_TYPE_GUI)
+ if (td->client_type == FIO_CLIENT_TYPE_GUI) {
fio_send_iolog(td, log, p);
-
- __finish_log(log, p);
+ free(log->log);
+ free(log);
+ } else
+ __finish_log(log, p);
}
void finish_log(struct thread_data *td, struct io_log *log, const char *name)