]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testutils: use g_autoptr
authorJán Tomko <jtomko@redhat.com>
Sun, 9 Feb 2020 00:51:37 +0000 (01:51 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 11 Feb 2020 15:30:18 +0000 (16:30 +0100)
commitf11e9abe882158a0b5cc28005cee6157df03a79a
treea3247596ed0b937d62f5966ec0273e4d21247b2d
parent40656ff758cd972dd4b66eceb33a6a0ed5a770df
testutils: use g_autoptr

Use g_autoptr where possible.

virTestCapsBuildNUMATopology is not converted completely,
because while the VIR_FREE call on cell_cpus is technically
wrong, neither VIR_ALLOC_N nor virBitmapNew can return
an allocation error now so it is effectively dead code.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/testutils.c