Skip to content

Commit

Permalink
Fix double free of VirDomain object
Browse files Browse the repository at this point in the history
Do not call Free() in the main function body. GetDomainStats already
registers a defered routine to cleanup the domains.

Signed-off-by: Vasiliy Ulyanov <[email protected]>
  • Loading branch information
vasiliy-ul committed May 12, 2022
1 parent a3aaf1a commit cec17e1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/virt-launcher/virtwrap/cli/libvirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ func (l *LibvirtConnection) GetDomainStats(statsTypes libvirt.DomainStatsTypes,
stat.CPUMapSet = true

list = append(list, stat)
domStat.Domain.Free()
}

return list, nil
Expand Down

0 comments on commit cec17e1

Please sign in to comment.