testutils: use g_autoptr
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 <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

crobinso/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jardasgit/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jardasgit/libvirt,olafhering/libvirt,fabianfreyer/libvirt,zippy2/libvirt,jfehlig/libvirt,zippy2/libvirt,nertpinx/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,crobinso/libvirt,nertpinx/libvirt,jfehlig/libvirt,jardasgit/libvirt,olafhering/libvirt,libvirt/libvirt,libvirt/libvirt,jardasgit/libvirt,crobinso/libvirt,jardasgit/libvirt,olafhering/libvirt