steadystate: add free helper
[fio.git] / steadystate.c
index 05ce029924170cce0bd594fdfd94811d888fccad..d0abb47cb4416859cef952e2f804f760c5e1e24d 100644 (file)
@@ -6,6 +6,14 @@
 
 bool steadystate_enabled = false;
 
+void steadystate_free(struct thread_data *td)
+{
+       free(td->ss.iops_data);
+       free(td->ss.bw_data);
+       td->ss.iops_data = NULL;
+       td->ss.bw_data = NULL;
+}
+
 static void steadystate_alloc(struct thread_data *td)
 {
        td->ss.bw_data = calloc(td->ss.dur, sizeof(uint64_t));