From cdd591c0c16e76e9bdbcf75d595b5ee2cd532961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= Date: Sat, 17 Nov 2018 15:40:57 -0500 Subject: [PATCH] really close the files before moving them --- src/cli.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 != "-")