1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-27 03:21:29 +03:00

Feature #523: Bugfix, a pointer was being deleted twice

This commit is contained in:
Carlos Martín 2011-04-08 19:12:33 +02:00
parent 2ef660b9b2
commit 0e7331b7b3

View File

@ -112,6 +112,7 @@ void RequestManager::VirtualMachineSaveDisk::execute(
if ( vm == 0 )
{
delete img_template;
goto error_vm_get;
}
@ -198,7 +199,6 @@ error_image_get:
error_vm_get:
oss.str(get_error(method_name, "VM", vm_id));
delete img_template;
goto error_common;
error_vm_get_disk_id: