Fix double free of VirDomain object
Do not call Free() in the main function body. GetDomainStats already
registers a defered routine to cleanup the domains.
@@ -313,7 +313,6 @@ func (l *LibvirtConnection) GetDomainStats(statsTypes libvirt.DomainStatsTypes,
stat.CPUMapSet = true
list = append(list, stat)
- domStat.Domain.Free()
}
return list, nil
