mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Feature #3383: Fix memory leak
This commit is contained in:
parent
07834dc6da
commit
6a87f3f1e7
@ -342,6 +342,8 @@ int VirtualMachinePool::allocate (
|
||||
|
||||
if (insert_index(deploy_id, -1, false) == -1) //Set import in progress
|
||||
{
|
||||
delete vm;
|
||||
|
||||
error_str = "Virtual Machine " + deploy_id + " already imported.";
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user