rtemstoolkit: Various coverity related fixes.

This commit is contained in:
Chris Johns
2018-08-06 09:17:36 +10:00
parent 5d957c9c51
commit 058a3a0bd0
3 changed files with 19 additions and 4 deletions

View File

@@ -83,7 +83,13 @@ namespace rld
temporary_files::~temporary_files ()
{
clean_up ();
try
{
clean_up ();
}
catch (...)
{
}
}
const std::string
@@ -99,6 +105,9 @@ namespace rld
RLD_PATH_SEPARATOR_STR);
tempfile_ref ref (name, keep);
tempfiles.push_back (ref);
::free (temp);
return name;
}
@@ -162,8 +171,14 @@ namespace rld
tempfile::~tempfile ()
{
close ();
temporaries.erase (_name);
try
{
close ();
temporaries.erase (_name);
}
catch (...)
{
}
}
void