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:
parent
bb35437206
commit
309390a0f1
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user