mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
hyperv: use g_autoptr for Msvm_ComputerSystem in hypervConnectListAllDomains
Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
97c558b5d7
commit
d9c015ec2c
@ -2869,7 +2869,7 @@ hypervConnectListAllDomains(virConnectPtr conn,
|
||||
{
|
||||
hypervPrivate *priv = conn->privateData;
|
||||
g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
|
||||
Msvm_ComputerSystem *computerSystemList = NULL;
|
||||
g_autoptr(Msvm_ComputerSystem) computerSystemList = NULL;
|
||||
Msvm_ComputerSystem *computerSystem = NULL;
|
||||
size_t ndoms;
|
||||
virDomainPtr domain;
|
||||
@ -2981,8 +2981,6 @@ hypervConnectListAllDomains(virConnectPtr conn,
|
||||
VIR_FREE(doms);
|
||||
}
|
||||
|
||||
hypervFreeObject((hypervObject *)computerSystemList);
|
||||
|
||||
return ret;
|
||||
}
|
||||
#undef MATCH
|
||||
|
Loading…
x
Reference in New Issue
Block a user