From 7903740d413a923e45a1f4d6b53b0c5674a2a485 Mon Sep 17 00:00:00 2001 From: Kristian Feldsam Date: Mon, 4 Nov 2024 22:55:10 +0100 Subject: [PATCH] Fix crosses initialization of 'Template tmpl' Signed-off-by: Kristian Feldsam --- src/lcm/LifeCycleActions.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lcm/LifeCycleActions.cc b/src/lcm/LifeCycleActions.cc index a5c0966fc5..b0ccee731d 100644 --- a/src/lcm/LifeCycleActions.cc +++ b/src/lcm/LifeCycleActions.cc @@ -989,6 +989,7 @@ void LifeCycleManager::clean_up_vm(VirtualMachine * vm, bool dispose, int& image_id, int uid, int gid, int req_id) { HostShareCapacity sr; + Template tmpl; unsigned int port; @@ -1176,7 +1177,6 @@ void LifeCycleManager::clean_up_vm(VirtualMachine * vm, bool dispose, vm->set_previous_vm_info(); vm->set_previous_running_etime(the_time); - Template tmpl; vm->get_previous_capacity(sr, tmpl); hpool->del_capacity(vm->get_previous_hid(), sr); @@ -1201,7 +1201,6 @@ void LifeCycleManager::clean_up_vm(VirtualMachine * vm, bool dispose, vm->set_previous_vm_info(); vm->set_previous_running_etime(the_time); - Template tmpl; vm->get_previous_capacity(sr, tmpl); hpool->del_capacity(vm->get_previous_hid(), sr);