mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 20:02:21 +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;
|
hypervPrivate *priv = conn->privateData;
|
||||||
g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
|
g_auto(virBuffer) query = VIR_BUFFER_INITIALIZER;
|
||||||
Msvm_ComputerSystem *computerSystemList = NULL;
|
g_autoptr(Msvm_ComputerSystem) computerSystemList = NULL;
|
||||||
Msvm_ComputerSystem *computerSystem = NULL;
|
Msvm_ComputerSystem *computerSystem = NULL;
|
||||||
size_t ndoms;
|
size_t ndoms;
|
||||||
virDomainPtr domain;
|
virDomainPtr domain;
|
||||||
@ -2981,8 +2981,6 @@ hypervConnectListAllDomains(virConnectPtr conn,
|
|||||||
VIR_FREE(doms);
|
VIR_FREE(doms);
|
||||||
}
|
}
|
||||||
|
|
||||||
hypervFreeObject((hypervObject *)computerSystemList);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#undef MATCH
|
#undef MATCH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user