[PATCH] Dynamically allocate the big filename entries in td
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index f185055..82a18fb 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -1933,6 +1933,10 @@ err:
        }
        if (td->mmap)
                munmap(td->mmap, td->file_size);
+       if (td->directory)
+               free(td->directory);
+       if (td->iolog_file)
+               free(td->iolog_file);
        cleanup_io(td);
        cleanup_io_u(td);
        td_set_runstate(td, TD_EXITED);