1
0
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:
Carlos Martín 2012-02-08 17:10:07 +01:00
parent f736af49e4
commit c03b78732f

View File

@ -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);
}
}