Fixes #428: memory leak in g3::internal::createLogFile (#430)

Co-authored-by: Jaroslav Smid <smidjar2.reg@email.cz>
This commit is contained in:
DlubalSmidJaroslav 2022-01-11 04:49:59 +01:00 committed by GitHub
parent 9bb36eb7e5
commit a7192f2b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}