diff --git a/apps/io_tester/io_tester.cc b/apps/io_tester/io_tester.cc index 7a7bf398563..26e1e59f2ab 100644 --- a/apps/io_tester/io_tester.cc +++ b/apps/io_tester/io_tester.cc @@ -784,7 +784,9 @@ class unlink_class_data : public class_data { options.append_is_unlikely = true; return create_and_fill_file(fname, fsize, flags, options).then([](std::pair p) { - return p.first.close(); + return do_with(std::move(p.first), [] (auto& f) { + return f.close(); + }); }); }); }