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

Bug #1097: free error message in PoolObjectSQL::replace_template

(cherry picked from commit 85149f77d25a1bf1c22b469fa600a935bd31f77c)
This commit is contained in:
Carlos Martín 2012-01-30 19:57:59 +01:00
parent bb35437206
commit 309390a0f1

View File

@ -183,6 +183,8 @@ int PoolObjectSQL::replace_template(const string& tmpl_str, string& error)
if (error_msg != 0)
{
oss << ": " << error_msg;
free(error_msg);
}
error = oss.str();