Skip to content

Commit

Permalink
Fix crosses initialization of 'Template tmpl'
Browse files Browse the repository at this point in the history
Signed-off-by: Kristian Feldsam <[email protected]>
  • Loading branch information
feldsam committed Nov 4, 2024
1 parent 44df47a commit 7903740
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lcm/LifeCycleActions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 7903740

Please sign in to comment.