Allow more flexibility in zone start and span
[fio.git] / engines / pmemblk.c
index 264eb713cf7906ae7acb43737706e345b718a769..730f4d776f1eb46d8bbfc792ed87b103c078641b 100644 (file)
@@ -226,6 +226,8 @@ static fio_pmemblk_file_t pmb_open(const char *pathspec, int flags)
 
        pthread_mutex_unlock(&CacheLock);
 
+       free(path);
+
        return pmb;
 
 error:
@@ -342,7 +344,8 @@ static int fio_pmemblk_get_file_size(struct thread_data *td, struct fio_file *f)
        return 0;
 }
 
-static int fio_pmemblk_queue(struct thread_data *td, struct io_u *io_u)
+static enum fio_q_status fio_pmemblk_queue(struct thread_data *td,
+                                          struct io_u *io_u)
 {
        struct fio_file *f = io_u->file;
        fio_pmemblk_file_t pmb = FILE_ENG_DATA(f);