We need to ensure we call buf_output_free() after using the
temp storage, otherwise we leaked the memory that we allocated
while filling the buffer.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
}
__log_buf(&out, "\n");
log_info_buf(out.buf, out.buflen);
+ buf_output_free(&out);
}
todo = thread_number;
__log_buf(&out, "<%s> ", name);
__log_buf(&out, "%s", buf);
log_info_buf(out.buf, out.buflen);
+ buf_output_free(&out);
client->skip_newline = strchr(buf, '\n') == NULL;
}
__log_buf(&out, "ioengine=%s, iodepth=%u\n",
td->io_ops->name, o->iodepth);
log_info_buf(out.buf, out.buflen);
+ buf_output_free(&out);
free(c1);
free(c2);