From a7192f2b1c921f5b12dac72c9ee4ddc6abb89287 Mon Sep 17 00:00:00 2001 From: DlubalSmidJaroslav <97470368+DlubalSmidJaroslav@users.noreply.github.com> Date: Tue, 11 Jan 2022 04:49:59 +0100 Subject: [PATCH] Fixes #428: memory leak in g3::internal::createLogFile (#430) Co-authored-by: Jaroslav Smid --- src/filesinkhelper.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesinkhelper.ipp b/src/filesinkhelper.ipp index cf6a721..0cde5e1 100644 --- a/src/filesinkhelper.ipp +++ b/src/filesinkhelper.ipp @@ -117,7 +117,7 @@ namespace g3 { std::ofstream &stream(*(out.get())); bool success_with_open_file = openLogFile(file_with_full_path, stream); if (false == success_with_open_file) { - out.release(); + out.reset(); } return out; }