mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Better error message cleanup in Template::parse_str_or_xml
This commit is contained in:
parent
f736af49e4
commit
c03b78732f
@ -163,6 +163,8 @@ int Template::parse_str_or_xml(const string &parse_str, string& error_msg)
|
||||
if (error_char != 0)
|
||||
{
|
||||
oss << ": " << error_char;
|
||||
|
||||
free(error_char);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -170,8 +172,6 @@ int Template::parse_str_or_xml(const string &parse_str, string& error_msg)
|
||||
}
|
||||
|
||||
error_msg = oss.str();
|
||||
|
||||
free(error_char);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user