lib/output_buffer: harden buf_output_free() and kill buf_output_clear()
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index 1f124a8c0b65d40d080638e3aa2a7a4089f061df..e433c6d3858fb454c336df58966a48d68b089cfb 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1826,8 +1826,8 @@ void __show_run_stats(void)
 
        for (i = 0; i < FIO_OUTPUT_NR; i++) {
                struct buf_output *out = &output[i];
+
                log_info_buf(out->buf, out->buflen);
-               buf_output_clear(out);
                buf_output_free(out);
        }