Fix ->file_map leak
authorJens Axboe <jens.axboe@oracle.com>
Fri, 9 Mar 2007 11:52:15 +0000 (12:52 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 9 Mar 2007 11:52:15 +0000 (12:52 +0100)
Just to appease valgrind.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index af14c67..49c4504 100644 (file)
@@ -401,6 +401,9 @@ void close_files(struct thread_data *td)
                }
 
                td_io_close_file(td, f);
                }
 
                td_io_close_file(td, f);
+
+               if (f->file_map)
+                       free(f->file_map);
        }
 
        td->filename = NULL;
        }
 
        td->filename = NULL;