[libvirt PATCH 3/7] testutils: use g_autoptr

Daniel P. Berrangé berrange at redhat.com
Tue Feb 11 13:00:50 UTC 2020


On Sun, Feb 09, 2020 at 02:32:33AM +0100, Ján Tomko wrote:
> 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 at redhat.com>
> ---
>  tests/testutils.c | 13 +++++--------
>  1 file changed, 5 insertions(+), 8 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list