options: make the groups/categories constant
[fio.git] / engines / sync.c
index 48aafff8f153772804095edd541ce2858f225876..f5801fec9a9fd7a471e18d90fbb048d7a9fd03ec 100644 (file)
@@ -317,9 +317,11 @@ static void fio_vsyncio_cleanup(struct thread_data *td)
 {
        struct syncio_data *sd = td->io_ops->data;
 
-       free(sd->iovecs);
-       free(sd->io_us);
-       free(sd);
+       if (sd) {
+               free(sd->iovecs);
+               free(sd->io_us);
+               free(sd);
+       }
 }
 
 static struct ioengine_ops ioengine_rw = {