really close the files before moving them

This commit is contained in:
Frédéric Mangano-Tarumi 2018-11-17 15:40:57 -05:00
parent e22a1d381a
commit cdd591c0c1

View File

@ -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 != "-")