mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-19 06:50:07 +03:00
bug: memory leak when a VM has a wrong template
This commit is contained in:
parent
85be6f3f84
commit
0bf7092ffc
@ -192,6 +192,8 @@ int VirtualMachinePool::allocate (
|
||||
NebulaLog::log("ONE", Log::ERROR, oss);
|
||||
free(error_msg);
|
||||
|
||||
delete vm;
|
||||
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user