mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Feature #407: Fix small mem. leak in Image
This commit is contained in:
parent
351ad62639
commit
daf7b709d2
@ -82,10 +82,12 @@ int ImagePool::allocate (
|
||||
{
|
||||
ostringstream oss;
|
||||
|
||||
oss << "NAME is already taken by image " << img_aux->get_oid() << ".";
|
||||
oss << "NAME is already taken by IMAGE " << img_aux->get_oid() << ".";
|
||||
error_str = oss.str();
|
||||
|
||||
*oid = -1;
|
||||
|
||||
delete img;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user