Feature #3383: Fix memory leak

This commit is contained in:
Carlos Martín committed 2015-02-09 12:29:36 +01:00
1 parent 07834dc6da
commit 6a87f3f1e7
1 file changed
+2
+2
View File
@@ -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;
}