Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
connect.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/connect.go b/connect.go
index 34a96ed..8cc7cc7 100644
--- a/connect.go
+++ b/connect.go
@@ -2915,6 +2915,10 @@ func (c *Connect) GetAllDomainStats(doms []*Domain, statsTypes DomainStatsTypes,
stats[i] = domstats
}
+ for i := 0; i < len(stats); i++ {
+ C.virDomainRef(stats[i].Domain.ptr)
+ }
+
return stats, nil
}
--
2.17.1
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list