mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
Bug #2281: Fix DS monitoring parse error crash
(cherry picked from commit 9d9e9d7ca6eb8f3bc95558474f291c9c3e8feb8d)
This commit is contained in:
parent
0635dce70b
commit
01f2d43707
@ -622,8 +622,6 @@ static void monitor_action(istringstream& is,
|
||||
char* error_msg;
|
||||
int rc = monitor_data.parse(*dsinfo, &error_msg);
|
||||
|
||||
delete dsinfo;
|
||||
|
||||
if ( rc != 0 )
|
||||
{
|
||||
oss << "Error parsing datastore information: " << error_msg
|
||||
@ -631,11 +629,14 @@ static void monitor_action(istringstream& is,
|
||||
|
||||
NebulaLog::log("ImM", Log::ERROR, oss);
|
||||
|
||||
delete dsinfo;
|
||||
free(error_msg);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
delete dsinfo;
|
||||
|
||||
float total, free, used;
|
||||
string ds_name;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user