Add missing free(td->sysfs_root);
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 23 Jan 2017 15:13:09 +0000 (00:13 +0900)
committerJens Axboe <axboe@fb.com>
Mon, 23 Jan 2017 15:26:12 +0000 (08:26 -0700)
->sysfs_root for td (not du) is always strdup'd.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
filesetup.c

index eb28826698811058a317fa6544b92bd8f388a368..4aaa903576bbe04dccdfc69e0088c8cd79cf2e76 100644 (file)
@@ -1208,6 +1208,7 @@ void close_and_free_files(struct thread_data *td)
        td->o.filename = NULL;
        free(td->files);
        free(td->file_locks);
        td->o.filename = NULL;
        free(td->files);
        free(td->file_locks);
+       free(td->sysfs_root);
        td->files_index = 0;
        td->files = NULL;
        td->file_locks = NULL;
        td->files_index = 0;
        td->files = NULL;
        td->file_locks = NULL;