fixed possible and actual memory leaks
[fio.git] / ioengines.c
index d08a511a0635eccc090528dfa2ff242fd5719209..68f307e541a9f5b0cd469c5f7fc695506b8e5144 100644 (file)
@@ -223,6 +223,8 @@ struct ioengine_ops *load_ioengine(struct thread_data *td)
  */
 void free_ioengine(struct thread_data *td)
 {
+       assert(td != NULL && td->io_ops != NULL);
+
        dprint(FD_IO, "free ioengine %s\n", td->io_ops->name);
 
        if (td->eo && td->io_ops->options) {