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:
parent
6311380782
commit
53077d8308
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user