From: Jens Axboe Date: Tue, 13 Mar 2007 10:25:07 +0000 (+0100) Subject: One more f->file_name typo X-Git-Tag: fio-1.14~20 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=1315a68a091816d284c5f46b28e419349aa821d8 One more f->file_name typo Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index a5b84c21..919bdf49 100644 --- a/filesetup.c +++ b/filesetup.c @@ -396,9 +396,10 @@ void close_files(struct thread_data *td) unsigned int i; for_each_file(td, f, i) { - if (!td->filename && (f->flags & FIO_FILE_UNLINK) && + if (!f->file_name && (f->flags & FIO_FILE_UNLINK) && f->filetype == FIO_TYPE_FILE) { unlink(f->file_name); + free(f->file_name); f->file_name = NULL; } diff --git a/fio.h b/fio.h index 5bf8c43d..c5764c8f 100644 --- a/fio.h +++ b/fio.h @@ -238,7 +238,7 @@ struct fio_file { unsigned long file_data; int fd; }; - const char *file_name; + char *file_name; void *mmap; unsigned long long file_size; unsigned long long real_file_size;