diff --git a/src/cli.cc b/src/cli.cc index 5fb6900..67d3dfa 100644 --- a/src/cli.cc +++ b/src/cli.cc @@ -389,8 +389,8 @@ ot::status ot::run(ot::options& opt) /* delete reader and writer before closing the files */ } - input.release(); - output.release(); + input.reset(); + output.reset(); if (rc != ot::status::ok) { if (!opt.path_out.empty() && opt.path_out != "-")