1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-10-29 22:26:22 +00:00

Remove temporary file generated at /tmp/file.xxxxxx

This commit is contained in:
Carles Fernandez 2024-10-29 11:44:10 +01:00
parent f27eb85af6
commit 949cdde2ea
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -319,9 +319,13 @@ Kml_Printer::~Kml_Printer()
{
std::cerr << e.what() << '\n';
}
errorlib::error_code ec;
if (!fs::remove(fs::path(tmp_file_str), ec))
{
LOG(INFO) << "Error deleting temporary file";
}
if (!positions_printed)
{
errorlib::error_code ec;
if (!fs::remove(fs::path(kml_filename), ec))
{
LOG(INFO) << "Error deleting temporary KML file";