1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Memory leak fix. The problem arised if the individual VM log file couldn't be opened

This commit is contained in:
Carlos Martín 2011-03-09 11:34:42 +01:00
parent 6311380782
commit 53077d8308

View File

@ -43,6 +43,8 @@ FileLog::FileLog(const string& file_name,
if (file.fail() == true)
{
free(log_file);
throw runtime_error("Could not open log file");
}