mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 10:23:58 +09:00
bug: memory leak when a VM has a wrong template
This commit is contained in:
1 parent
85be6f3f84
commit
0bf7092ffc
1 file changed
+2
@@ -192,6 +192,8 @@ int VirtualMachinePool::allocate (
|
||||
NebulaLog::log("ONE", Log::ERROR, oss);
|
||||
free(error_msg);
|
||||
|
||||
delete vm;
|
||||
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user